@@ -109,7 +109,7 @@ |
||
109 | 109 | * |
110 | 110 | * @return false|int |
111 | 111 | */ |
112 | - public function getPositionXL(): int|bool |
|
112 | + public function getPositionXL(): int | bool |
|
113 | 113 | { |
114 | 114 | // Scrutinizer thinks the following could return string. It is wrong. |
115 | 115 | return array_search($this->position, self::POSITION_XLREF); |
@@ -57,7 +57,7 @@ |
||
57 | 57 | * |
58 | 58 | * @return array|string The resulting array, or a string containing an error |
59 | 59 | */ |
60 | - public static function sequence($rows = 1, $columns = 1, $start = 1, $step = 1): string|array |
|
60 | + public static function sequence($rows = 1, $columns = 1, $start = 1, $step = 1): string | array |
|
61 | 61 | { |
62 | 62 | try { |
63 | 63 | $rows = (int) Helpers::validateNumericNullSubstitution($rows, 1); |
@@ -112,7 +112,7 @@ |
||
112 | 112 | * |
113 | 113 | * @return false|int Index |
114 | 114 | */ |
115 | - public function getIndexForHashCode(string $hashCode): int|bool |
|
115 | + public function getIndexForHashCode(string $hashCode): int | bool |
|
116 | 116 | { |
117 | 117 | // Scrutinizer thinks the following could return string. It is wrong. |
118 | 118 | return array_search($hashCode, $this->keyMap, true); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | * |
22 | 22 | * @param string|string[] $color HEX color or array with HEX colors |
23 | 23 | */ |
24 | - private function buildChartSpreadsheet(string|array $color): Spreadsheet |
|
24 | + private function buildChartSpreadsheet(string | array $color): Spreadsheet |
|
25 | 25 | { |
26 | 26 | // Problem occurs when setting plot line color |
27 | 27 | // The output chart xml file is missing the a:ln tag |
@@ -20,7 +20,7 @@ |
||
20 | 20 | parent::__construct('complexAssert'); |
21 | 21 | } |
22 | 22 | |
23 | - private function testExpectedExceptions(string|float $expected, string|float $actual): bool |
|
23 | + private function testExpectedExceptions(string | float $expected, string | float $actual): bool |
|
24 | 24 | { |
25 | 25 | // Expecting an error, so we do a straight string comparison |
26 | 26 | if ($expected === $actual) { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | return $returnValue; |
53 | 53 | } |
54 | 54 | |
55 | - private function numericOperator(DataValidation $dataValidation, int|float $cellValue): bool |
|
55 | + private function numericOperator(DataValidation $dataValidation, int | float $cellValue): bool |
|
56 | 56 | { |
57 | 57 | $operator = $dataValidation->getOperator(); |
58 | 58 | $formula1 = $dataValidation->getFormula1(); |
@@ -5260,7 +5260,7 @@ discard block |
||
5260 | 5260 | * |
5261 | 5261 | * @return array |
5262 | 5262 | */ |
5263 | - private function executeArrayComparison($operand1, $operand2, $operation, Stack &$stack, bool $recursingArrays) |
|
5263 | + private function executeArrayComparison($operand1, $operand2, $operation, Stack & $stack, bool $recursingArrays) |
|
5264 | 5264 | { |
5265 | 5265 | $result = []; |
5266 | 5266 | if (!is_array($operand2)) { |
@@ -5306,7 +5306,7 @@ discard block |
||
5306 | 5306 | * |
5307 | 5307 | * @return mixed |
5308 | 5308 | */ |
5309 | - private function executeBinaryComparisonOperation($operand1, $operand2, $operation, Stack &$stack, bool $recursingArrays = false) |
|
5309 | + private function executeBinaryComparisonOperation($operand1, $operand2, $operation, Stack & $stack, bool $recursingArrays = false) |
|
5310 | 5310 | { |
5311 | 5311 | // If we're dealing with matrix operations, we want a matrix result |
5312 | 5312 | if ((is_array($operand1)) || (is_array($operand2))) { |
@@ -883,7 +883,7 @@ |
||
883 | 883 | * @param int $row |
884 | 884 | * @param string $column |
885 | 885 | */ |
886 | - private function applyInlineStyle(Worksheet &$sheet, $row, $column, array $attributeArray): void |
|
886 | + private function applyInlineStyle(Worksheet & $sheet, $row, $column, array $attributeArray): void |
|
887 | 887 | { |
888 | 888 | if (!isset($attributeArray['style'])) { |
889 | 889 | return; |
@@ -2323,7 +2323,7 @@ |
||
2323 | 2323 | * @param int $rwB Row containing bottom right corner of object |
2324 | 2324 | * @param int $dyB Distance from bottom of cell |
2325 | 2325 | */ |
2326 | - private function writeObjPicture(int $colL, int $dxL, int $rwT, int|float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void |
|
2326 | + private function writeObjPicture(int $colL, int $dxL, int $rwT, int | float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void |
|
2327 | 2327 | { |
2328 | 2328 | $record = 0x005d; // Record identifier |
2329 | 2329 | $length = 0x003c; // Bytes to follow |