@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @param null|mixed[]|string $cellAddress |
39 | 39 | */ |
40 | - private static function validateAddress(array|string|null $cellAddress): string |
|
40 | + private static function validateAddress(array | string | null $cellAddress): string |
|
41 | 41 | { |
42 | 42 | $cellAddress = Functions::flattenSingleValue($cellAddress); |
43 | 43 | if (!is_string($cellAddress) || !$cellAddress) { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @return mixed[]|string An array containing a cell or range of cells, or a string on error |
65 | 65 | */ |
66 | - public static function INDIRECT($cellAddress, mixed $a1fmt, Cell $cell): string|array |
|
66 | + public static function INDIRECT($cellAddress, mixed $a1fmt, Cell $cell): string | array |
|
67 | 67 | { |
68 | 68 | [$baseCol, $baseRow] = Coordinate::indexesFromString($cell->getCoordinate()); |
69 | 69 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | private static function extractRequiredCells(?Worksheet $worksheet, string $cellAddress): array |
108 | 108 | { |
109 | 109 | return Calculation::getInstance($worksheet !== null ? $worksheet->getParent() : null) |
110 | - ->extractCellRange($cellAddress, $worksheet, false, createCell: true); |
|
110 | + ->extractCellRange($cellAddress, $worksheet, false, createCell : true); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | private static function handleRowColumnRanges(?Worksheet $worksheet, string $start, string $end): string |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | mixed $payment = 0.0, |
36 | 36 | mixed $presentValue = 0.0, |
37 | 37 | mixed $type = FinancialConstants::PAYMENT_END_OF_PERIOD |
38 | - ): string|float { |
|
38 | + ): string | float { |
|
39 | 39 | $rate = Functions::flattenSingleValue($rate); |
40 | 40 | $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods); |
41 | 41 | $payment = Functions::flattenSingleValue($payment) ?? 0.0; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | mixed $payment = 0.0, |
75 | 75 | mixed $futureValue = 0.0, |
76 | 76 | mixed $type = FinancialConstants::PAYMENT_END_OF_PERIOD |
77 | - ): string|float { |
|
77 | + ): string | float { |
|
78 | 78 | $rate = Functions::flattenSingleValue($rate); |
79 | 79 | $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods); |
80 | 80 | $payment = Functions::flattenSingleValue($payment) ?? 0.0; |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | float $presentValue, |
181 | 181 | float $futureValue, |
182 | 182 | int $type |
183 | - ): string|float { |
|
183 | + ): string | float { |
|
184 | 184 | if ($rate != 0.0) { |
185 | 185 | if ($presentValue == 0.0) { |
186 | 186 | return ExcelError::NAN(); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | mixed $presentValue, |
30 | 30 | mixed $futureValue = 0.0, |
31 | 31 | mixed $type = FinancialConstants::PAYMENT_END_OF_PERIOD |
32 | - ): string|float { |
|
32 | + ): string | float { |
|
33 | 33 | $interestRate = Functions::flattenSingleValue($interestRate); |
34 | 34 | $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods); |
35 | 35 | $presentValue = Functions::flattenSingleValue($presentValue); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | mixed $presentValue, |
78 | 78 | mixed $futureValue = 0, |
79 | 79 | mixed $type = FinancialConstants::PAYMENT_END_OF_PERIOD |
80 | - ): string|float { |
|
80 | + ): string | float { |
|
81 | 81 | $interestRate = Functions::flattenSingleValue($interestRate); |
82 | 82 | $period = Functions::flattenSingleValue($period); |
83 | 83 | $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods); |