@@ -414,7 +414,7 @@ |
||
414 | 414 | { |
415 | 415 | // characters |
416 | 416 | $chars = self::convertEncoding($textValue, 'UTF-16LE', 'UTF-8'); |
417 | - $ln = (int) (strlen($chars) / 2); // N.B. - strlen, not mb_strlen issue #642 |
|
417 | + $ln = (int) (strlen($chars) / 2); // N.B. - strlen, not mb_strlen issue #642 |
|
418 | 418 | |
419 | 419 | return pack('vC', $ln, 0x0001) . $chars; |
420 | 420 | } |
@@ -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(); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | /** |
16 | 16 | * @dataProvider binderProvider |
17 | 17 | */ |
18 | - public function testBindValue(null|string|bool|int|float|DateTime|DateTimeImmutable $value): void |
|
18 | + public function testBindValue(null | string | bool | int | float | DateTime | DateTimeImmutable $value): void |
|
19 | 19 | { |
20 | 20 | $spreadsheet = new Spreadsheet(); |
21 | 21 | $sheet = $spreadsheet->getActiveSheet(); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * @param null|string|string[] $separators |
16 | 16 | * @param string[] $formatBlocks |
17 | 17 | */ |
18 | - public function testDateTime(string $expectedResult, string|null|array $separators, array $formatBlocks): void |
|
18 | + public function testDateTime(string $expectedResult, string | null | array $separators, array $formatBlocks): void |
|
19 | 19 | { |
20 | 20 | $wizard = new DateTime($separators, ...$formatBlocks); |
21 | 21 | self::assertSame($expectedResult, (string) $wizard); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * @param null|string|string[] $separators |
14 | 14 | * @param string[] $formatBlocks |
15 | 15 | */ |
16 | - public function testTime(string $expectedResult, string|array|null $separators = null, array $formatBlocks = []): void |
|
16 | + public function testTime(string $expectedResult, string | array | null $separators = null, array $formatBlocks = []): void |
|
17 | 17 | { |
18 | 18 | $wizard = new Time($separators, ...$formatBlocks); |
19 | 19 | self::assertSame($expectedResult, (string) $wizard); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * @param null|string|string[] $separators |
14 | 14 | * @param string[] $formatBlocks |
15 | 15 | */ |
16 | - public function testDate(string $expectedResult, string|array|null $separators = null, array $formatBlocks = []): void |
|
16 | + public function testDate(string $expectedResult, string | array | null $separators = null, array $formatBlocks = []): void |
|
17 | 17 | { |
18 | 18 | $wizard = new Date($separators, ...$formatBlocks); |
19 | 19 | self::assertSame($expectedResult, (string) $wizard); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * @param null|string|string[] $separators |
14 | 14 | * @param string[] $formatBlocks |
15 | 15 | */ |
16 | - public function testTime(string $expectedResult, string|array|null $separators = null, array $formatBlocks = []): void |
|
16 | + public function testTime(string $expectedResult, string | array | null $separators = null, array $formatBlocks = []): void |
|
17 | 17 | { |
18 | 18 | $wizard = new Duration($separators, ...$formatBlocks); |
19 | 19 | self::assertSame($expectedResult, (string) $wizard); |