Passed
Pull Request — master (#4368)
by Owen
12:09
created
src/PhpSpreadsheet/Reader/Xlsx.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2013,26 +2013,26 @@
 block discarded – undo
2013 2013
         }
2014 2014
     }
2015 2015
 
2016
-    private static function getArrayItem(null|array|bool|SimpleXMLElement $array, int|string $key = 0): mixed
2016
+    private static function getArrayItem(null | array | bool | SimpleXMLElement $array, int | string $key = 0): mixed
2017 2017
     {
2018 2018
         return ($array === null || is_bool($array)) ? null : ($array[$key] ?? null);
2019 2019
     }
2020 2020
 
2021
-    private static function getArrayItemString(null|array|bool|SimpleXMLElement $array, int|string $key = 0): string
2021
+    private static function getArrayItemString(null | array | bool | SimpleXMLElement $array, int | string $key = 0): string
2022 2022
     {
2023 2023
         $retVal = self::getArrayItem($array, $key);
2024 2024
 
2025 2025
         return ($retVal === null || is_scalar($retVal) || $retVal instanceof Stringable) ? ((string) $retVal) : '';
2026 2026
     }
2027 2027
 
2028
-    private static function getArrayItemIntOrSxml(null|array|bool|SimpleXMLElement $array, int|string $key = 0): int|SimpleXMLElement
2028
+    private static function getArrayItemIntOrSxml(null | array | bool | SimpleXMLElement $array, int | string $key = 0): int | SimpleXMLElement
2029 2029
     {
2030 2030
         $retVal = self::getArrayItem($array, $key);
2031 2031
 
2032 2032
         return (is_int($retVal) || $retVal instanceof SimpleXMLElement) ? $retVal : 0;
2033 2033
     }
2034 2034
 
2035
-    private static function dirAdd(null|SimpleXMLElement|string $base, null|SimpleXMLElement|string $add): string
2035
+    private static function dirAdd(null | SimpleXMLElement | string $base, null | SimpleXMLElement | string $add): string
2036 2036
     {
2037 2037
         $base = (string) $base;
2038 2038
         $add = (string) $add;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Csv.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -681,7 +681,7 @@
 block discarded – undo
681 681
         string $separator = ',',
682 682
         string $enclosure = '"',
683 683
         ?string $escape = null
684
-    ): array|false {
684
+    ): array | false {
685 685
         $escape = $escape ?? self::$defaultEscapeCharacter;
686 686
         if (PHP_VERSION_ID >= 80400 && $escape !== '') {
687 687
             return @fgetcsv($stream, $length, $separator, $enclosure, $escape);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xls.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
         }
377 377
     }
378 378
 
379
-    private function processMemoryDrawing(BstoreContainer &$bstoreContainer, MemoryDrawing $drawing, string $renderingFunctionx): void
379
+    private function processMemoryDrawing(BstoreContainer & $bstoreContainer, MemoryDrawing $drawing, string $renderingFunctionx): void
380 380
     {
381 381
         switch ($renderingFunctionx) {
382 382
             case MemoryDrawing::RENDERING_JPEG:
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
 
409 409
     private static int $two = 2; // phpstan silliness
410 410
 
411
-    private function processDrawing(BstoreContainer &$bstoreContainer, Drawing $drawing): void
411
+    private function processDrawing(BstoreContainer & $bstoreContainer, Drawing $drawing): void
412 412
     {
413 413
         $blipType = 0;
414 414
         $blipData = '';
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
         }
466 466
     }
467 467
 
468
-    private function processBaseDrawing(BstoreContainer &$bstoreContainer, BaseDrawing $drawing): void
468
+    private function processBaseDrawing(BstoreContainer & $bstoreContainer, BaseDrawing $drawing): void
469 469
     {
470 470
         if ($drawing instanceof Drawing && $drawing->getPath() !== '') {
471 471
             $this->processDrawing($bstoreContainer, $drawing);
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
         return $data;
753 753
     }
754 754
 
755
-    private function writeSummaryPropOle(float|int $dataProp, int &$dataSection_NumProps, array &$dataSection, int $sumdata, int $typdata): void
755
+    private function writeSummaryPropOle(float | int $dataProp, int &$dataSection_NumProps, array &$dataSection, int $sumdata, int $typdata): void
756 756
     {
757 757
         if ($dataProp) {
758 758
             $dataSection[] = [
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Trunc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
26 26
      *            with the same dimensions
27 27
      */
28
-    public static function evaluate(array|float|string|null $value = 0, array|float|int|string $digits = 0): array|float|string
28
+    public static function evaluate(array | float | string | null $value = 0, array | float | int | string $digits = 0): array | float | string
29 29
     {
30 30
         if (is_array($value) || is_array($digits)) {
31 31
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $digits);
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
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      * @param string[] $formatBlocks
15 15
      */
16 16
     #[\PHPUnit\Framework\Attributes\DataProvider('providerTime')]
17
-    public function testTime(string $expectedResult, string|array|null $separators = null, array $formatBlocks = []): void
17
+    public function testTime(string $expectedResult, string | array | null $separators = null, array $formatBlocks = []): void
18 18
     {
19 19
         $wizard = new Duration($separators, ...$formatBlocks);
20 20
         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
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      * @param string[] $formatBlocks
15 15
      */
16 16
     #[\PHPUnit\Framework\Attributes\DataProvider('providerTime')]
17
-    public function testTime(string $expectedResult, string|array|null $separators = null, array $formatBlocks = []): void
17
+    public function testTime(string $expectedResult, string | array | null $separators = null, array $formatBlocks = []): void
18 18
     {
19 19
         $wizard = new Time($separators, ...$formatBlocks);
20 20
         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
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      * @param string[] $formatBlocks
15 15
      */
16 16
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDate')]
17
-    public function testDate(string $expectedResult, string|array|null $separators = null, array $formatBlocks = []): void
17
+    public function testDate(string $expectedResult, string | array | null $separators = null, array $formatBlocks = []): void
18 18
     {
19 19
         $wizard = new Date($separators, ...$formatBlocks);
20 20
         self::assertSame($expectedResult, (string) $wizard);
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
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      * @param string[] $formatBlocks
17 17
      */
18 18
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDateTime')]
19
-    public function testDateTime(string $expectedResult, string|null|array $separators, array $formatBlocks): void
19
+    public function testDateTime(string $expectedResult, string | null | array $separators, array $formatBlocks): void
20 20
     {
21 21
         $wizard = new DateTime($separators, ...$formatBlocks);
22 22
         self::assertSame($expectedResult, (string) $wizard);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/CalculationFunctionListTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     }
26 26
 
27 27
     #[\PHPUnit\Framework\Attributes\DataProvider('providerGetFunctions')]
28
-    public function testGetFunctions(array|string $functionCall): void
28
+    public function testGetFunctions(array | string $functionCall): void
29 29
     {
30 30
         self::assertIsCallable($functionCall);
31 31
     }
Please login to merge, or discard this patch.