Passed
Pull Request — master (#4414)
by Owen
14:43
created
src/PhpSpreadsheet/Calculation/Statistical/Variances.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      *
20 20
      * @return float|string (string if result is an error)
21 21
      */
22
-    public static function VAR(mixed ...$args): float|string
22
+    public static function VAR(mixed ...$args): float | string
23 23
     {
24 24
         $returnValue = ExcelError::DIV0();
25 25
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      *
62 62
      * @return float|string (string if result is an error)
63 63
      */
64
-    public static function VARA(mixed ...$args): string|float
64
+    public static function VARA(mixed ...$args): string | float
65 65
     {
66 66
         $returnValue = ExcelError::DIV0();
67 67
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      *
108 108
      * @return float|string (string if result is an error)
109 109
      */
110
-    public static function VARP(mixed ...$args): float|string
110
+    public static function VARP(mixed ...$args): float | string
111 111
     {
112 112
         // Return value
113 113
         $returnValue = ExcelError::DIV0();
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      *
151 151
      * @return float|string (string if result is an error)
152 152
      */
153
-    public static function VARPA(mixed ...$args): string|float
153
+    public static function VARPA(mixed ...$args): string | float
154 154
     {
155 155
         $returnValue = ExcelError::DIV0();
156 156
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/NetworkDays.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
      *         If an array of values is passed for the $startDate or $endDate arguments, then the returned result
34 34
      *            will also be an array with matching dimensions
35 35
      */
36
-    public static function count(mixed $startDate, mixed $endDate, mixed ...$dateArgs): array|string|int
36
+    public static function count(mixed $startDate, mixed $endDate, mixed ...$dateArgs): array | string | int
37 37
     {
38 38
         if (is_array($startDate) || is_array($endDate)) {
39 39
             return self::evaluateArrayArgumentsSubset(
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/DateParts.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
29 29
      *            with the same dimensions
30 30
      */
31
-    public static function day(mixed $dateValue): array|int|string
31
+    public static function day(mixed $dateValue): array | int | string
32 32
     {
33 33
         if (is_array($dateValue)) {
34 34
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
70 70
      *            with the same dimensions
71 71
      */
72
-    public static function month(mixed $dateValue): array|string|int
72
+    public static function month(mixed $dateValue): array | string | int
73 73
     {
74 74
         if (is_array($dateValue)) {
75 75
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
109 109
      *            with the same dimensions
110 110
      */
111
-    public static function year(mixed $dateValue): array|string|int
111
+    public static function year(mixed $dateValue): array | string | int
112 112
     {
113 113
         if (is_array($dateValue)) {
114 114
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/TimeParts.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
28 28
      *            with the same dimensions
29 29
      */
30
-    public static function hour(mixed $timeValue): array|string|int
30
+    public static function hour(mixed $timeValue): array | string | int
31 31
     {
32 32
         if (is_array($timeValue)) {
33 33
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
69 69
      *            with the same dimensions
70 70
      */
71
-    public static function minute(mixed $timeValue): array|string|int
71
+    public static function minute(mixed $timeValue): array | string | int
72 72
     {
73 73
         if (is_array($timeValue)) {
74 74
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue);
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
110 110
      *            with the same dimensions
111 111
      */
112
-    public static function second(mixed $timeValue): array|string|int
112
+    public static function second(mixed $timeValue): array | string | int
113 113
     {
114 114
         if (is_array($timeValue)) {
115 115
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Csv/Delimiter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
 
91 91
             $meanSquareDeviations[$delimiter] = array_reduce(
92 92
                 $series,
93
-                fn ($sum, $value): int|float => $sum + ($value - $median) ** 2
93
+                fn ($sum, $value): int | float => $sum + ($value - $median) ** 2
94 94
             ) / count($series);
95 95
         }
96 96
 
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.
src/PhpSpreadsheet/Style/Alignment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     /**
239 239
      * Get Horizontal.
240 240
      */
241
-    public function getHorizontal(): null|string
241
+    public function getHorizontal(): null | string
242 242
     {
243 243
         if ($this->isSupervisor) {
244 244
             return $this->getSharedComponent()->getHorizontal();
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     /**
275 275
      * Get Vertical.
276 276
      */
277
-    public function getVertical(): null|string
277
+    public function getVertical(): null | string
278 278
     {
279 279
         if ($this->isSupervisor) {
280 280
             return $this->getSharedComponent()->getVertical();
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
     /**
308 308
      * Get TextRotation.
309 309
      */
310
-    public function getTextRotation(): null|int
310
+    public function getTextRotation(): null | int
311 311
     {
312 312
         if ($this->isSupervisor) {
313 313
             return $this->getSharedComponent()->getTextRotation();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Arabic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
63 63
      *            with the same dimensions
64 64
      */
65
-    public static function evaluate(mixed $roman): array|int|string
65
+    public static function evaluate(mixed $roman): array | int | string
66 66
     {
67 67
         if (is_array($roman)) {
68 68
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $roman);
Please login to merge, or discard this patch.