Passed
Pull Request — master (#3718)
by Adrien
12:54
created
Category
src/PhpSpreadsheet/Calculation/MathTrig/SumSquares.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      *
21 21
      * @return float|string
22 22
      */
23
-    public static function sumSquare(...$args): string|int|float
23
+    public static function sumSquare(...$args): string | int | float
24 24
     {
25 25
         try {
26 26
             $returnValue = 0;
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      *
66 66
      * @return float|string
67 67
      */
68
-    public static function sumXSquaredMinusYSquared($matrixData1, $matrixData2): string|int|float
68
+    public static function sumXSquaredMinusYSquared($matrixData1, $matrixData2): string | int | float
69 69
     {
70 70
         try {
71 71
             $array1 = Functions::flattenArray($matrixData1);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      *
94 94
      * @return float|string
95 95
      */
96
-    public static function sumXSquaredPlusYSquared($matrixData1, $matrixData2): string|int|float
96
+    public static function sumXSquaredPlusYSquared($matrixData1, $matrixData2): string | int | float
97 97
     {
98 98
         try {
99 99
             $array1 = Functions::flattenArray($matrixData1);
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *
122 122
      * @return float|string
123 123
      */
124
-    public static function sumXMinusYSquared($matrixData1, $matrixData2): string|int|float
124
+    public static function sumXMinusYSquared($matrixData1, $matrixData2): string | int | float
125 125
     {
126 126
         try {
127 127
             $array1 = Functions::flattenArray($matrixData1);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/IntClass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
22 22
      *            with the same dimensions
23 23
      */
24
-    public static function evaluate($number): array|string|int
24
+    public static function evaluate($number): array | string | int
25 25
     {
26 26
         if (is_array($number)) {
27 27
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/SeriesSum.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      *
23 23
      * @return array|float|string The result, or a string containing an error
24 24
      */
25
-    public static function evaluate($x, $n, $m, ...$args): array|string|float|int
25
+    public static function evaluate($x, $n, $m, ...$args): array | string | float | int
26 26
     {
27 27
         if (is_array($x) || is_array($n) || is_array($m)) {
28 28
             return self::evaluateArrayArgumentsSubset([self::class, __FUNCTION__], 3, $x, $n, $m, ...$args);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Floor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * Avoid Scrutinizer problems concerning complexity.
130 130
      */
131
-    private static function argumentsOkPrecise(float $number, float $significance): string|float
131
+    private static function argumentsOkPrecise(float $number, float $significance): string | float
132 132
     {
133 133
         if ($significance == 0.0) {
134 134
             return ExcelError::DIV0();
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      *
146 146
      * @return float|string Rounded Number, or a string containing an error
147 147
      */
148
-    private static function argsOk(float $number, float $significance, int $mode): string|float
148
+    private static function argsOk(float $number, float $significance, int $mode): string | float
149 149
     {
150 150
         if (!$significance) {
151 151
             return ExcelError::DIV0();
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     /**
172 172
      * Avoid Scrutinizer problems concerning complexity.
173 173
      */
174
-    private static function argumentsOk(float $number, float $significance): string|float
174
+    private static function argumentsOk(float $number, float $significance): string | float
175 175
     {
176 176
         if ($significance == 0.0) {
177 177
             return ExcelError::DIV0();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Factorial.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 fact($factVal): array|string|float|int
30
+    public static function fact($factVal): array | string | float | int
31 31
     {
32 32
         if (is_array($factVal)) {
33 33
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $factVal);
@@ -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 factDouble($factVal): array|string|float|int
72
+    public static function factDouble($factVal): array | string | float | int
73 73
     {
74 74
         if (is_array($factVal)) {
75 75
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $factVal);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @return float|string The result, or a string containing an error
103 103
      */
104
-    public static function multinomial(...$args): string|int|float
104
+    public static function multinomial(...$args): string | int | float
105 105
     {
106 106
         $summer = 0;
107 107
         $divisor = 1;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Operations.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
24 24
      *            with the same dimensions
25 25
      */
26
-    public static function mod($dividend, $divisor): array|string|float
26
+    public static function mod($dividend, $divisor): array | string | float
27 27
     {
28 28
         if (is_array($dividend) || is_array($divisor)) {
29 29
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $dividend, $divisor);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      *
99 99
      * @param mixed ...$args Data values
100 100
      */
101
-    public static function product(...$args): string|float
101
+    public static function product(...$args): string | float
102 102
     {
103 103
         $args = array_filter(
104 104
             Functions::flattenArray($args),
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
142 142
      *            with the same dimensions
143 143
      */
144
-    public static function quotient($numerator, $denominator): array|string|int
144
+    public static function quotient($numerator, $denominator): array | string | int
145 145
     {
146 146
         if (is_array($numerator) || is_array($denominator)) {
147 147
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $numerator, $denominator);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Random.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      *
16 16
      * @return float Random number
17 17
      */
18
-    public static function rand(): int|float
18
+    public static function rand(): int | float
19 19
     {
20 20
         return mt_rand(0, 10000000) / 10000000;
21 21
     }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
33 33
      *            with the same dimensions
34 34
      */
35
-    public static function randBetween($min, $max): array|string|int
35
+    public static function randBetween($min, $max): array | string | int
36 36
     {
37 37
         if (is_array($min) || is_array($max)) {
38 38
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $min, $max);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *
68 68
      * @return array|string The resulting array, or a string containing an error
69 69
      */
70
-    public static function randArray($rows = 1, $columns = 1, $min = 0, $max = 1, $wholeNumber = false): string|array
70
+    public static function randArray($rows = 1, $columns = 1, $min = 0, $max = 1, $wholeNumber = false): string | array
71 71
     {
72 72
         try {
73 73
             $rows = (int) Helpers::validateNumericNullSubstitution($rows, 1);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         return array_chunk(
88 88
             array_map(
89
-                function () use ($min, $max, $wholeNumber): int|float {
89
+                function () use ($min, $max, $wholeNumber): int | float {
90 90
                     return $wholeNumber
91 91
                         ? mt_rand((int) $min, (int) $max)
92 92
                         : (mt_rand() / mt_getrandmax()) * ($max - $min) + $min;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Round.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
23 23
      *            with the same dimensions
24 24
      */
25
-    public static function round($number, $precision): array|string|float
25
+    public static function round($number, $precision): array | string | float
26 26
     {
27 27
         if (is_array($number) || is_array($precision)) {
28 28
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $precision);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
51 51
      *            with the same dimensions
52 52
      */
53
-    public static function up($number, $digits): array|string|float
53
+    public static function up($number, $digits): array | string | float
54 54
     {
55 55
         if (is_array($number) || is_array($digits)) {
56 56
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $digits);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
87 87
      *            with the same dimensions
88 88
      */
89
-    public static function down($number, $digits): array|string|float
89
+    public static function down($number, $digits): array | string | float
90 90
     {
91 91
         if (is_array($number) || is_array($digits)) {
92 92
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $digits);
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
123 123
      *            with the same dimensions
124 124
      */
125
-    public static function multiple($number, $multiple): array|string|int|float
125
+    public static function multiple($number, $multiple): array | string | int | float
126 126
     {
127 127
         if (is_array($number) || is_array($multiple)) {
128 128
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $multiple);
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
166 166
      *            with the same dimensions
167 167
      */
168
-    public static function even($number): array|string|float
168
+    public static function even($number): array | string | float
169 169
     {
170 170
         if (is_array($number)) {
171 171
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
192 192
      *            with the same dimensions
193 193
      */
194
-    public static function odd($number): array|string|int|float
194
+    public static function odd($number): array | string | int | float
195 195
     {
196 196
         if (is_array($number)) {
197 197
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/LookupRef.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      *                                FALSE                CELL_ADDRESS returns an R1C1-style reference
42 42
      * @param array|string $sheetText Optional Name of worksheet to use
43 43
      */
44
-    public static function cellAddress($row, $column, $relativity = 1, $referenceStyle = true, $sheetText = ''): string|array
44
+    public static function cellAddress($row, $column, $relativity = 1, $referenceStyle = true, $sheetText = ''): string | array
45 45
     {
46 46
         return Address::cell($row, $column, $relativity, $referenceStyle, $sheetText);
47 47
     }
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
      *
269 269
      * @return array|float|int|string The relative position of the found item
270 270
      */
271
-    public static function MATCH($lookupValue, $lookupArray, $matchType = 1): array|float|int|string
271
+    public static function MATCH($lookupValue, $lookupArray, $matchType = 1): array | float | int | string
272 272
     {
273 273
         return LookupRef\ExcelMatch::MATCH($lookupValue, $lookupArray, $matchType);
274 274
     }
Please login to merge, or discard this patch.