Passed
Pull Request — master (#3834)
by Shinji
21:30
created
src/PhpSpreadsheet/Shared/StringHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -414,7 +414,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Chart/Issue589Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Custom/ComplexAssert.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Cell/DataValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Cell/DefaultValueBinderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Style/NumberFormat/Wizard/DateTimeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Style/NumberFormat/Wizard/TimeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Style/NumberFormat/Wizard/DateTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Style/NumberFormat/Wizard/DurationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.