Completed
Push — master ( 89343c...3e93d4 )
by
unknown
36s queued 25s
created
tests/PhpSpreadsheetTests/Custom/ComplexAssert.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         parent::__construct('complexAssert'); //* @phpstan-ignore-line
20 20
     }
21 21
 
22
-    private function testExpectedExceptions(string|float $expected, string|float $actual): bool
22
+    private function testExpectedExceptions(string | float $expected, string | float $actual): bool
23 23
     {
24 24
         //    Expecting an error, so we do a straight string comparison
25 25
         if ($expected === $actual) {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     }
93 93
 
94 94
     /** @param array<mixed>|float|string $actual */
95
-    public function runAssertComplexEquals(string $expected, array|float|string $actual, ?float $delta = null): void
95
+    public function runAssertComplexEquals(string $expected, array | float | string $actual, ?float $delta = null): void
96 96
     {
97 97
         self::assertTrue($this->assertComplexEquals($expected, $actual, $delta), $this->getErrorMessage());
98 98
     }
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Cell/CellAddressTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     }
78 78
 
79 79
     #[DataProvider('providerCreateFromColumnRowException')]
80
-    public function testCreateFromColumnRowException(int|string $columnId, int|string $rowId): void
80
+    public function testCreateFromColumnRowException(int | string $columnId, int | string $rowId): void
81 81
     {
82 82
         $this->expectException(Exception::class);
83 83
         $this->expectExceptionMessage('Row and Column Ids must be positive integer values');
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Shared/CodePageTest.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 string|string[] $expectedResult
16 16
      */
17 17
     #[DataProvider('providerCodePage')]
18
-    public function testCodePageNumberToName(array|string $expectedResult, int $codePageIndex): void
18
+    public function testCodePageNumberToName(array | string $expectedResult, int $codePageIndex): void
19 19
     {
20 20
         if ($expectedResult === 'exception') {
21 21
             $this->expectException(Exception::class);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Spreadsheet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
      *
271 271
      * @return mixed[]
272 272
      */
273
-    public function getRibbonXMLData(string $what = 'all'): null|array|string //we need some constants here...
273
+    public function getRibbonXMLData(string $what = 'all'): null | array | string //we need some constants here...
274 274
     {
275 275
         $returnData = null;
276 276
         $what = strtolower($what);
@@ -1185,7 +1185,7 @@  discard block
 block discarded – undo
1185 1185
      *
1186 1186
      * @return false|Style
1187 1187
      */
1188
-    public function getCellXfByHashCode(string $hashcode): bool|Style
1188
+    public function getCellXfByHashCode(string $hashcode): bool | Style
1189 1189
     {
1190 1190
         foreach ($this->cellXfCollection as $cellXf) {
1191 1191
             if ($cellXf->getHashCode() === $hashcode) {
@@ -1288,7 +1288,7 @@  discard block
 block discarded – undo
1288 1288
      *
1289 1289
      * @return false|Style
1290 1290
      */
1291
-    public function getCellStyleXfByHashCode(string $hashcode): bool|Style
1291
+    public function getCellStyleXfByHashCode(string $hashcode): bool | Style
1292 1292
     {
1293 1293
         foreach ($this->cellStyleXfCollection as $cellStyleXf) {
1294 1294
             if ($cellStyleXf->getHashCode() === $hashcode) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/Properties.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     }
181 181
 
182 182
     /** @return array{type: ?string, value: ?string, alpha: ?int} */
183
-    protected function setColorProperties(?string $color, null|float|int|string $alpha, ?string $colorType): array
183
+    protected function setColorProperties(?string $color, null | float | int | string $alpha, ?string $colorType): array
184 184
     {
185 185
         return [
186 186
             'type' => $colorType,
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
      * @param mixed[] $properties
410 410
      * @param array<mixed>|int|string $elements
411 411
      */
412
-    protected function getArrayElementsValue(array $properties, array|int|string $elements): mixed
412
+    protected function getArrayElementsValue(array $properties, array | int | string $elements): mixed
413 413
     {
414 414
         $reference = &$properties;
415 415
         if (!is_array($elements)) {
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
      *
448 448
      * @return null|array<mixed>|float|int|string
449 449
      */
450
-    public function getGlowProperty(array|string $property): null|array|float|int|string
450
+    public function getGlowProperty(array | string $property): null | array | float | int | string
451 451
     {
452 452
         $retVal = null;
453 453
         if ($property === 'size') {
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
     /**
471 471
      * Get Glow Color Property.
472 472
      */
473
-    public function getGlowColor(string $propertyName): null|int|string
473
+    public function getGlowColor(string $propertyName): null | int | string
474 474
     {
475 475
         return $this->glowColor->getColorProperty($propertyName);
476 476
     }
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
     /**
538 538
      * Set Shadow Properties.
539 539
      */
540
-    public function setShadowProperties(int $presets, ?string $colorValue = null, ?string $colorType = null, null|float|int|string $colorAlpha = null, ?float $blur = null, ?int $angle = null, ?float $distance = null): void
540
+    public function setShadowProperties(int $presets, ?string $colorValue = null, ?string $colorType = null, null | float | int | string $colorAlpha = null, ?float $blur = null, ?int $angle = null, ?float $distance = null): void
541 541
     {
542 542
         $this->activateObject()->setShadowPresetsProperties((int) $presets);
543 543
         if ($presets === 0) {
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
      *
629 629
      * @return $this
630 630
      */
631
-    protected function setShadowAngle(null|float|int|string $angle)
631
+    protected function setShadowAngle(null | float | int | string $angle)
632 632
     {
633 633
         if (is_numeric($angle)) {
634 634
             $this->shadowProperties['direction'] = $angle;
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
      *
664 664
      * @return null|mixed[]|string
665 665
      */
666
-    public function getShadowProperty($elements): array|string|null
666
+    public function getShadowProperty($elements): array | string | null
667 667
     {
668 668
         if ($elements === 'color') {
669 669
             return [
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
     /**
754 754
      * Get Line Color Property.
755 755
      */
756
-    public function getLineColorProperty(string $propertyName): null|int|string
756
+    public function getLineColorProperty(string $propertyName): null | int | string
757 757
     {
758 758
         return $this->lineColor->getColorProperty($propertyName);
759 759
     }
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
      * Set Line Style Properties.
763 763
      */
764 764
     public function setLineStyleProperties(
765
-        null|float|int|string $lineWidth = null,
765
+        null | float | int | string $lineWidth = null,
766 766
         ?string $compoundType = '',
767 767
         ?string $dashType = '',
768 768
         ?string $capType = '',
@@ -863,7 +863,7 @@  discard block
 block discarded – undo
863 863
      *
864 864
      * @param array<mixed>|string $elements
865 865
      */
866
-    public function getLineStyleProperty(array|string $elements): ?string
866
+    public function getLineStyleProperty(array | string $elements): ?string
867 867
     {
868 868
         $retVal = $this->getArrayElementsValue($this->lineStyleProperties, $elements);
869 869
         if (is_scalar($retVal)) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/DataSeriesValues.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,8 +87,8 @@  discard block
 block discarded – undo
87 87
         int $pointCount = 0,
88 88
         ?array $dataValues = [],
89 89
         ?string $marker = null,
90
-        null|ChartColor|array|string $fillColor = null,
91
-        int|string $pointSize = 3
90
+        null | ChartColor | array | string $fillColor = null,
91
+        int | string $pointSize = 3
92 92
     ) {
93 93
         parent::__construct();
94 94
         $this->markerFillColor = new ChartColor();
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
      *
286 286
      * @return string|string[] HEX color or array with HEX colors
287 287
      */
288
-    public function getFillColor(): string|array
288
+    public function getFillColor(): string | array
289 289
     {
290 290
         if ($this->fillColor === null) {
291 291
             return '';
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
     /**
349 349
      * Get line width for series.
350 350
      */
351
-    public function getLineWidth(): null|float|int
351
+    public function getLineWidth(): null | float | int
352 352
     {
353 353
         /** @var null|float|int */
354 354
         $temp = $this->lineStyleProperties['width'];
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
      *
362 362
      * @return $this
363 363
      */
364
-    public function setLineWidth(null|float|int $width): static
364
+    public function setLineWidth(null | float | int $width): static
365 365
     {
366 366
         $this->lineStyleProperties['width'] = $width;
367 367
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/Title.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      *
19 19
      * @var array<RichText|string>|RichText|string
20 20
      */
21
-    private array|RichText|string $caption;
21
+    private array | RichText | string $caption;
22 22
 
23 23
     /**
24 24
      * Allow overlay of other elements?
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      *
40 40
      * @param array<RichText|string>|RichText|string $caption
41 41
      */
42
-    public function __construct(array|RichText|string $caption = '', ?Layout $layout = null, bool $overlay = false)
42
+    public function __construct(array | RichText | string $caption = '', ?Layout $layout = null, bool $overlay = false)
43 43
     {
44 44
         $this->caption = $caption;
45 45
         $this->layout = $layout;
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      *
52 52
      * @return array<RichText|string>|RichText|string
53 53
      */
54
-    public function getCaption(): array|RichText|string
54
+    public function getCaption(): array | RichText | string
55 55
     {
56 56
         return $this->caption;
57 57
     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      *
93 93
      * @return $this
94 94
      */
95
-    public function setCaption(array|RichText|string $caption): static
95
+    public function setCaption(array | RichText | string $caption): static
96 96
     {
97 97
         $this->caption = $caption;
98 98
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Text.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @return array<mixed>|int|string If an array of values is passed for the argument, then the returned result
24 24
      *            will also be an array with matching dimensions
25 25
      */
26
-    public static function length(mixed $value = ''): array|int|string
26
+    public static function length(mixed $value = ''): array | int | string
27 27
     {
28 28
         if (is_array($value)) {
29 29
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * @return array<mixed>|bool|string If an array of values is passed for either of the arguments, then the returned result
52 52
      *            will also be an array with matching dimensions
53 53
      */
54
-    public static function exact(mixed $value1, mixed $value2): array|bool|string
54
+    public static function exact(mixed $value1, mixed $value2): array | bool | string
55 55
     {
56 56
         if (is_array($value1) || is_array($value2)) {
57 57
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value1, $value2);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * @return array<mixed>|string If an array of values is passed for the argument, then the returned result
77 77
      *            will also be an array with matching dimensions
78 78
      */
79
-    public static function test(mixed $testValue = ''): array|string
79
+    public static function test(mixed $testValue = ''): array | string
80 80
     {
81 81
         if (is_array($testValue)) {
82 82
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $testValue);
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      *
111 111
      * @return array<mixed>|string the array built from the text, split by the row and column delimiters, or an error string
112 112
      */
113
-    public static function split(mixed $text, $columnDelimiter = null, $rowDelimiter = null, bool $ignoreEmpty = false, bool $matchMode = true, mixed $padding = '#N/A'): array|string
113
+    public static function split(mixed $text, $columnDelimiter = null, $rowDelimiter = null, bool $ignoreEmpty = false, bool $matchMode = true, mixed $padding = '#N/A'): array | string
114 114
     {
115 115
         $text = Functions::flattenSingleValue($text);
116 116
         if (ErrorValue::isError($text, true)) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Format.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * @return array<mixed>|string If an array of values is passed for either of the arguments, then the returned result
80 80
      *            will also be an array with matching dimensions
81 81
      */
82
-    public static function FIXEDFORMAT(mixed $value, mixed $decimals = 2, mixed $noCommas = false): array|string
82
+    public static function FIXEDFORMAT(mixed $value, mixed $decimals = 2, mixed $noCommas = false): array | string
83 83
     {
84 84
         if (is_array($value) || is_array($decimals) || is_array($noCommas)) {
85 85
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $decimals, $noCommas);
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      * @return array<mixed>|string If an array of values is passed for either of the arguments, then the returned result
120 120
      *            will also be an array with matching dimensions
121 121
      */
122
-    public static function TEXTFORMAT(mixed $value, mixed $format): array|string
122
+    public static function TEXTFORMAT(mixed $value, mixed $format): array | string
123 123
     {
124 124
         if (is_array($value) || is_array($format)) {
125 125
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $format);
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
      * @return array<mixed>|string If an array of values is passed for either of the arguments, then the returned result
240 240
      *            will also be an array with matching dimensions
241 241
      */
242
-    public static function valueToText(mixed $value, mixed $format = false): array|string
242
+    public static function valueToText(mixed $value, mixed $format = false): array | string
243 243
     {
244 244
         if (is_array($value) || is_array($format)) {
245 245
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $format);
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
      *
283 283
      * @return array<mixed>|float|string
284 284
      */
285
-    public static function NUMBERVALUE(mixed $value = '', mixed $decimalSeparator = null, mixed $groupSeparator = null): array|string|float
285
+    public static function NUMBERVALUE(mixed $value = '', mixed $decimalSeparator = null, mixed $groupSeparator = null): array | string | float
286 286
     {
287 287
         if (is_array($value) || is_array($decimalSeparator) || is_array($groupSeparator)) {
288 288
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $decimalSeparator, $groupSeparator);
Please login to merge, or discard this patch.