Skip to content

Commit c5c9f24

Browse files
authored
Merge branch 'master' into update-translation-file
2 parents 6389ec3 + 4e69085 commit c5c9f24

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+96
-95
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org). Thia is a
3232
- Protected ranges and insert/delete rows/columns. [Issue #4695](https://github.com/PHPOffice/PhpSpreadsheet/issues/4695) [PR #4702](https://github.com/PHPOffice/PhpSpreadsheet/pull/4702)
3333
- Unexpected Exception in Php DateTime. [Issue #4696](https://github.com/PHPOffice/PhpSpreadsheet/issues/4696) [Issue #917](https://github.com/PHPOffice/PhpSpreadsheet/issues/917) [PR #4697](https://github.com/PHPOffice/PhpSpreadsheet/pull/4697)
3434
- Add missing Dutch translation to translation file. [PR #4707](https://github.com/PHPOffice/PhpSpreadsheet/pull/4707)
35+
- Fix lots of typos throughout codebase. [PR #4705](https://github.com/PHPOffice/PhpSpreadsheet/pull/4705)
3536

3637
## 2025-10-25 - 5.2.0
3738

src/PhpSpreadsheet/Calculation/BinaryComparison.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static function compare(mixed $operand1, mixed $operand2, string $operato
5151
$operand2 = Calculation::unwrapResult($operand2);
5252
}
5353

54-
// Use case insensitive comparaison if not OpenOffice mode
54+
// Use case-insensitive comparison if not OpenOffice mode
5555
if (Functions::getCompatibilityMode() != Functions::COMPATIBILITY_OPENOFFICE) {
5656
if (is_string($operand1)) {
5757
$operand1 = StringHelper::strToUpper($operand1);

src/PhpSpreadsheet/Calculation/DateTimeExcel/Date.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Date
2424
* Excel Function:
2525
* DATE(year,month,day)
2626
*
27-
* PhpSpreadsheet is a lot more forgiving than MS Excel when passing non numeric values to this function.
27+
* PhpSpreadsheet is a lot more forgiving than MS Excel when passing non-numeric values to this function.
2828
* A Month name or abbreviation (English only at this point) such as 'January' or 'Jan' will still be accepted,
2929
* as will a day value with a suffix (e.g. '21st' rather than simply 21); again only English language.
3030
*

src/PhpSpreadsheet/Calculation/DateTimeExcel/DateValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private static function setUpArray(string $dateValue, DateTimeImmutable $dti): a
118118
if (!Helpers::dateParseSucceeded($PHPDateArray)) {
119119
// If original count was 1, we've already returned.
120120
// If it was 2, we added another.
121-
// Therefore, neither of the first 2 stroks below can fail.
121+
// Therefore, neither of the first 2 strtoks below can fail.
122122
$testVal1 = strtok($dateValue, '- ');
123123
$testVal2 = strtok('- ');
124124
$testVal3 = strtok('- ') ?: $dti->format('Y');

src/PhpSpreadsheet/Calculation/DateTimeExcel/Days360.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function between(mixed $startDate = 0, mixed $endDate = 0, mixed $
7676
}
7777

7878
/**
79-
* Return the number of days between two dates based on a 360 day calendar.
79+
* Return the number of days between two dates based on a 360-day calendar.
8080
*/
8181
private static function dateDiff360(int $startDay, int $startMonth, int $startYear, int $endDay, int $endMonth, int $endYear, bool $methodUS): int
8282
{

src/PhpSpreadsheet/Calculation/Engineering/ConvertDecimal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public static function hex32bit(float $value, string $hexstr, bool $force = fals
150150
/**
151151
* toOctal.
152152
*
153-
* Return an decimal value as octal.
153+
* Return a decimal value as octal.
154154
*
155155
* Excel Function:
156156
* DEC2OCT(x[,places])

src/PhpSpreadsheet/Calculation/Engineering/ErfC.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ErfC
1818
* Note: In Excel 2007 or earlier, if you input a negative value for the lower bound argument,
1919
* the function would return a #NUM! error. However, in Excel 2010, the function algorithm was
2020
* improved, so that it can now calculate the function for both positive and negative x values.
21-
* PhpSpreadsheet follows Excel 2010 behaviour, and accepts nagative arguments.
21+
* PhpSpreadsheet follows Excel 2010 behaviour, and accepts negative arguments.
2222
*
2323
* Excel Function:
2424
* ERFC(x)

src/PhpSpreadsheet/Calculation/Financial/CashFlow/Constant/Periodic/Interest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static function payment(
8383
* =ISPMT(interest_rate, period, number_payments, pv)
8484
*
8585
* @param mixed $interestRate is the interest rate for the investment
86-
* @param mixed $period is the period to calculate the interest rate. It must be betweeen 1 and number_payments.
86+
* @param mixed $period is the period to calculate the interest rate. It must be between 1 and number_payments.
8787
* @param mixed $numberOfPeriods is the number of payments for the annuity
8888
* @param mixed $principleRemaining is the loan amount or present value of the payments
8989
*/

src/PhpSpreadsheet/Calculation/FunctionArray.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ class FunctionArray extends CalculationBase
919919
'FLOOR' => [
920920
'category' => Category::CATEGORY_MATH_AND_TRIG,
921921
'functionCall' => [MathTrig\Floor::class, 'floor'],
922-
'argumentCount' => '1-2', // Excel requries 2, Ods/Gnumeric 1-2
922+
'argumentCount' => '1-2', // Excel requires 2, Ods/Gnumeric 1-2
923923
],
924924
'FLOOR.MATH' => [
925925
'category' => Category::CATEGORY_MATH_AND_TRIG,

src/PhpSpreadsheet/Calculation/LookupRef/ExcelMatch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static function MATCH(mixed $lookupValue, mixed $lookupArray, mixed $matc
5858
return $e->getMessage();
5959
}
6060

61-
// MATCH() is not case sensitive, so we convert lookup value to be lower cased if it's a string type.
61+
// MATCH() is not case-sensitive, so we convert lookup value to be lower cased if it's a string type.
6262
if (is_string($lookupValue)) {
6363
$lookupValue = StringHelper::strToLower($lookupValue);
6464
}

0 commit comments

Comments
 (0)