Failed Conditions
Pull Request — master (#3743)
by Adrien
14:08
created
tests/PhpSpreadsheetTests/Calculation/CalculationFunctionListTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     /**
34 34
      * @dataProvider providerGetFunctions
35 35
      */
36
-    public function testGetFunctions(string $category, array|string $functionCall): void
36
+    public function testGetFunctions(string $category, array | string $functionCall): void
37 37
     {
38 38
         self::assertIsCallable($functionCall);
39 39
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTime.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      *
35 35
      * @return float|string Excel date/time serial value, or string if error
36 36
      */
37
-    public static function getDateValue(mixed $dateValue): float|string
37
+    public static function getDateValue(mixed $dateValue): float | string
38 38
     {
39 39
         try {
40 40
             return DateTimeExcel\Helpers::getDateValue($dateValue);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      * @return array|\DateTime|float|int|string Excel date/time serial value, PHP date/time serial value or PHP date/time object,
185 185
      *                        depending on the value of the ReturnDateType flag
186 186
      */
187
-    public static function TIME($hour = 0, $minute = 0, $second = 0): string|float|int|\DateTime|array
187
+    public static function TIME($hour = 0, $minute = 0, $second = 0): string | float | int | \DateTime | array
188 188
     {
189 189
         return DateTimeExcel\Time::fromHMS($hour, $minute, $second);
190 190
     }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      * @return array|\Datetime|float|int|string Excel date/time serial value, PHP date/time serial value or PHP date/time object,
249 249
      *                        depending on the value of the ReturnDateType flag
250 250
      */
251
-    public static function TIMEVALUE($timeValue): string|\Datetime|int|float|array
251
+    public static function TIMEVALUE($timeValue): string | \Datetime | int | float | array
252 252
     {
253 253
         return DateTimeExcel\TimeValue::fromString($timeValue);
254 254
     }
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
      *
333 333
      * @return array|int|string Number of days between start date and end date
334 334
      */
335
-    public static function DAYS360(mixed $startDate = 0, mixed $endDate = 0, $method = false): string|int|array
335
+    public static function DAYS360(mixed $startDate = 0, mixed $endDate = 0, $method = false): string | int | array
336 336
     {
337 337
         return DateTimeExcel\Days360::between($startDate, $endDate, $method);
338 338
     }
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
      *
369 369
      * @return array|float|string fraction of the year, or a string containing an error
370 370
      */
371
-    public static function YEARFRAC(mixed $startDate = 0, mixed $endDate = 0, $method = 0): string|int|float|array
371
+    public static function YEARFRAC(mixed $startDate = 0, mixed $endDate = 0, $method = 0): string | int | float | array
372 372
     {
373 373
         return DateTimeExcel\YearFrac::fraction($startDate, $endDate, $method);
374 374
     }
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
      *
396 396
      * @return array|int|string Interval between the dates
397 397
      */
398
-    public static function NETWORKDAYS(mixed $startDate, mixed $endDate, mixed ...$dateArgs): string|int|array
398
+    public static function NETWORKDAYS(mixed $startDate, mixed $endDate, mixed ...$dateArgs): string | int | array
399 399
     {
400 400
         return DateTimeExcel\NetworkDays::count($startDate, $endDate, ...$dateArgs);
401 401
     }
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
      *
448 448
      * @return array|int|string Day of the month
449 449
      */
450
-    public static function DAYOFMONTH(mixed $dateValue = 1): int|string|array
450
+    public static function DAYOFMONTH(mixed $dateValue = 1): int | string | array
451 451
     {
452 452
         return DateTimeExcel\DateParts::day($dateValue);
453 453
     }
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
      *
475 475
      * @return array|int|string Day of the week value
476 476
      */
477
-    public static function WEEKDAY($dateValue = 1, $style = 1): string|int|array
477
+    public static function WEEKDAY($dateValue = 1, $style = 1): string | int | array
478 478
     {
479 479
         return DateTimeExcel\Week::day($dateValue, $style);
480 480
     }
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
      *
686 686
      * @return array|int|string Week Number
687 687
      */
688
-    public static function WEEKNUM(mixed $dateValue = 1, $method = self::STARTWEEK_SUNDAY): int|string|array
688
+    public static function WEEKNUM(mixed $dateValue = 1, $method = self::STARTWEEK_SUNDAY): int | string | array
689 689
     {
690 690
         return DateTimeExcel\Week::number($dateValue, $method);
691 691
     }
@@ -707,7 +707,7 @@  discard block
 block discarded – undo
707 707
      *
708 708
      * @return array|int|string Week Number
709 709
      */
710
-    public static function ISOWEEKNUM(mixed $dateValue = 1): int|string|array
710
+    public static function ISOWEEKNUM(mixed $dateValue = 1): int | string | array
711 711
     {
712 712
         return DateTimeExcel\Week::isoWeekNumber($dateValue);
713 713
     }
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
      *
731 731
      * @return array|int|string Month of the year
732 732
      */
733
-    public static function MONTHOFYEAR(mixed $dateValue = 1): string|int|array
733
+    public static function MONTHOFYEAR(mixed $dateValue = 1): string | int | array
734 734
     {
735 735
         return DateTimeExcel\DateParts::month($dateValue);
736 736
     }
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
      *
754 754
      * @return array|int|string Year
755 755
      */
756
-    public static function YEAR(mixed $dateValue = 1): string|int|array
756
+    public static function YEAR(mixed $dateValue = 1): string | int | array
757 757
     {
758 758
         return DateTimeExcel\DateParts::year($dateValue);
759 759
     }
@@ -776,7 +776,7 @@  discard block
 block discarded – undo
776 776
      *
777 777
      * @return array|int|string Hour
778 778
      */
779
-    public static function HOUROFDAY(mixed $timeValue = 0): string|int|array
779
+    public static function HOUROFDAY(mixed $timeValue = 0): string | int | array
780 780
     {
781 781
         return DateTimeExcel\TimeParts::hour($timeValue);
782 782
     }
@@ -799,7 +799,7 @@  discard block
 block discarded – undo
799 799
      *
800 800
      * @return array|int|string Minute
801 801
      */
802
-    public static function MINUTE(mixed $timeValue = 0): string|int|array
802
+    public static function MINUTE(mixed $timeValue = 0): string | int | array
803 803
     {
804 804
         return DateTimeExcel\TimeParts::minute($timeValue);
805 805
     }
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
      *
823 823
      * @return array|int|string Second
824 824
      */
825
-    public static function SECOND(mixed $timeValue = 0): string|int|array
825
+    public static function SECOND(mixed $timeValue = 0): string | int | array
826 826
     {
827 827
         return DateTimeExcel\TimeParts::second($timeValue);
828 828
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/HashTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
     /**
111 111
      * Get index for hash code.
112 112
      */
113
-    public function getIndexForHashCode(string $hashCode): false|int
113
+    public function getIndexForHashCode(string $hashCode): false | int
114 114
     {
115 115
         return array_search($hashCode, $this->keyMap, true);
116 116
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/Legend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
     /**
102 102
      * Get legend position as an Excel internal numeric value.
103 103
      */
104
-    public function getPositionXL(): false|int
104
+    public function getPositionXL(): false | int
105 105
     {
106 106
         return array_search($this->position, self::POSITION_XLREF);
107 107
     }
Please login to merge, or discard this patch.