Completed
Push — master ( 3bb10f...9da522 )
by
unknown
39s queued 27s
created
src/PhpSpreadsheet/Calculation/DateTimeExcel/Date.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
65 65
      *            with the same dimensions
66 66
      */
67
-    public static function fromYMD(array|float|int|string $year, null|array|bool|float|int|string $month, array|float|int|string $day): float|int|DateTime|string|array
67
+    public static function fromYMD(array | float | int | string $year, null | array | bool | float | int | string $month, array | float | int | string $day): float | int | DateTime | string | array
68 68
     {
69 69
         if (is_array($year) || is_array($month) || is_array($day)) {
70 70
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $year, $month, $day);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
         return str_replace('""""', '""', $operator . $operand);
190 190
     }
191 191
 
192
-    private static function operandSpecialHandling(mixed $operand): bool|float|int|string
192
+    private static function operandSpecialHandling(mixed $operand): bool | float | int | string
193 193
     {
194 194
         if (is_numeric($operand) || is_bool($operand)) {
195 195
             return $operand;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Subtotal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      *                    in hidden rows
85 85
      * @param mixed[] $args A mixed data series of values
86 86
      */
87
-    public static function evaluate(mixed $functionType, ...$args): float|int|string
87
+    public static function evaluate(mixed $functionType, ...$args): float | int | string
88 88
     {
89 89
         /** @var Cell */
90 90
         $cellReference = array_pop($args);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/ChiSquared.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @return array|float|int|string If an array of numbers is passed as an argument, then the returned result will also be an array
27 27
      *            with the same dimensions
28 28
      */
29
-    public static function distributionRightTail(mixed $value, mixed $degrees): array|string|int|float
29
+    public static function distributionRightTail(mixed $value, mixed $degrees): array | string | int | float
30 30
     {
31 31
         if (is_array($value) || is_array($degrees)) {
32 32
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $degrees);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @return array|float|int|string If an array of numbers is passed as an argument, then the returned result will also be an array
69 69
      *            with the same dimensions
70 70
      */
71
-    public static function distributionLeftTail(mixed $value, mixed $degrees, mixed $cumulative): array|string|int|float
71
+    public static function distributionLeftTail(mixed $value, mixed $degrees, mixed $cumulative): array | string | int | float
72 72
     {
73 73
         if (is_array($value) || is_array($degrees) || is_array($cumulative)) {
74 74
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $degrees, $cumulative);
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      * @return array|float|string If an array of numbers is passed as an argument, then the returned result will also be an array
155 155
      *            with the same dimensions
156 156
      */
157
-    public static function inverseLeftTail(mixed $probability, mixed $degrees): array|string|float
157
+    public static function inverseLeftTail(mixed $probability, mixed $degrees): array | string | float
158 158
     {
159 159
         if (is_array($probability) || is_array($degrees)) {
160 160
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $probability, $degrees);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      * @param array $actual an array of observed frequencies
185 185
      * @param array $expected an array of expected frequencies
186 186
      */
187
-    public static function test($actual, $expected): float|string
187
+    public static function test($actual, $expected): float | string
188 188
     {
189 189
         $rows = count($actual);
190 190
         $actual = Functions::flattenArray($actual);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/CalculationLocale.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -337,10 +337,10 @@  discard block
 block discarded – undo
337 337
     }
338 338
 
339 339
     /** @var null|string[] */
340
-    private static ?array $functionReplaceFromExcel;
340
+    private static ? array $functionReplaceFromExcel;
341 341
 
342 342
     /** @var null|string[] */
343
-    private static ?array $functionReplaceToLocale;
343
+    private static ? array $functionReplaceToLocale;
344 344
 
345 345
     public function translateFormulaToLocale(string $formula): string
346 346
     {
@@ -376,10 +376,10 @@  discard block
 block discarded – undo
376 376
     }
377 377
 
378 378
     /** @var null|string[] */
379
-    protected static ?array $functionReplaceFromLocale;
379
+    protected static ? array $functionReplaceFromLocale;
380 380
 
381 381
     /** @var null|string[] */
382
-    protected static ?array $functionReplaceToExcel;
382
+    protected static ? array $functionReplaceToExcel;
383 383
 
384 384
     public function translateFormulaToEnglish(string $formula): string
385 385
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Database/DatabaseAbstract.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
      *                                        the column label in which you specify a condition for the
26 26
      *                                        column.
27 27
      */
28
-    abstract public static function evaluate(array $database, array|null|int|string $field, array $criteria): null|float|int|string;
28
+    abstract public static function evaluate(array $database, array | null | int | string $field, array $criteria): null | float | int | string;
29 29
 
30 30
     /**
31 31
      * fieldExtract.
Please login to merge, or discard this patch.
PhpSpreadsheetTests/Calculation/Functions/Engineering/ConvertUoMTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     }
52 52
 
53 53
     #[DataProvider('providerCONVERTUOM')]
54
-    public function testDirectCallToCONVERTUOM(float|int|string $expectedResult, float|int|string $value, string $from, string $to): void
54
+    public function testDirectCallToCONVERTUOM(float | int | string $expectedResult, float | int | string $value, string $from, string $to): void
55 55
     {
56 56
         $result = ConvertUOM::convert($value, $from, $to);
57 57
         self::assertEqualsWithDelta($expectedResult, $result, self::UOM_PRECISION);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Cell/CoordinateTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
     }
171 171
 
172 172
     #[DataProvider('providerAbsoluteReferences')]
173
-    public function testAbsoluteReferenceFromString(mixed $expectedResult, int|string $rangeSet): void
173
+    public function testAbsoluteReferenceFromString(mixed $expectedResult, int | string $rangeSet): void
174 174
     {
175 175
         $result = Coordinate::absoluteReference((string) $rangeSet);
176 176
         self::assertEquals($expectedResult, $result);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Cell/Coordinate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *
85 85
      * @return string Absolute coordinate        e.g. '$A' or '$1' or '$A$1'
86 86
      */
87
-    public static function absoluteReference(int|string $cellAddress): string
87
+    public static function absoluteReference(int | string $cellAddress): string
88 88
     {
89 89
         $cellAddress = (string) $cellAddress;
90 90
         if (self::coordinateIsRange($cellAddress)) {
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
      *
421 421
      * @param int|numeric-string $columnIndex Column index (A = 1)
422 422
      */
423
-    public static function stringFromColumnIndex(int|string $columnIndex): string
423
+    public static function stringFromColumnIndex(int | string $columnIndex): string
424 424
     {
425 425
         /** @var string[] */
426 426
         static $indexCache = [];
Please login to merge, or discard this patch.