Failed Conditions
Pull Request — master (#3743)
by Adrien
11:55
created
src/PhpSpreadsheet/Calculation/Information/Value.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
25 25
      *            with the same dimensions
26 26
      */
27
-    public static function isBlank(mixed $value = null): array|bool
27
+    public static function isBlank(mixed $value = null): array | bool
28 28
     {
29 29
         if (is_array($value)) {
30 30
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
74 74
      *            with the same dimensions
75 75
      */
76
-    public static function isEven(mixed $value = null): array|string|bool
76
+    public static function isEven(mixed $value = null): array | string | bool
77 77
     {
78 78
         if (is_array($value)) {
79 79
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
99 99
      *            with the same dimensions
100 100
      */
101
-    public static function isOdd(mixed $value = null): array|string|bool
101
+    public static function isOdd(mixed $value = null): array | string | bool
102 102
     {
103 103
         if (is_array($value)) {
104 104
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
124 124
      *            with the same dimensions
125 125
      */
126
-    public static function isNumber(mixed $value = null): array|bool
126
+    public static function isNumber(mixed $value = null): array | bool
127 127
     {
128 128
         if (is_array($value)) {
129 129
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
147 147
      *            with the same dimensions
148 148
      */
149
-    public static function isLogical(mixed $value = null): array|bool
149
+    public static function isLogical(mixed $value = null): array | bool
150 150
     {
151 151
         if (is_array($value)) {
152 152
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
166 166
      *            with the same dimensions
167 167
      */
168
-    public static function isText(mixed $value = null): array|bool
168
+    public static function isText(mixed $value = null): array | bool
169 169
     {
170 170
         if (is_array($value)) {
171 171
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
185 185
      *            with the same dimensions
186 186
      */
187
-    public static function isNonText(mixed $value = null): array|bool
187
+    public static function isNonText(mixed $value = null): array | bool
188 188
     {
189 189
         if (is_array($value)) {
190 190
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Information/ErrorValue.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
19 19
      *            with the same dimensions
20 20
      */
21
-    public static function isErr(mixed $value = ''): array|bool
21
+    public static function isErr(mixed $value = ''): array | bool
22 22
     {
23 23
         if (is_array($value)) {
24 24
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
38 38
      *            with the same dimensions
39 39
      */
40
-    public static function isError(mixed $value = ''): array|bool
40
+    public static function isError(mixed $value = ''): array | bool
41 41
     {
42 42
         if (is_array($value)) {
43 43
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
61 61
      *            with the same dimensions
62 62
      */
63
-    public static function isNa(mixed $value = ''): array|bool
63
+    public static function isNa(mixed $value = ''): array | bool
64 64
     {
65 65
         if (is_array($value)) {
66 66
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/CharacterConvert.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      *         If an array of values is passed as the argument, then the returned result will also be an array
21 21
      *            with the same dimensions
22 22
      */
23
-    public static function character(mixed $character): array|string
23
+    public static function character(mixed $character): array | string
24 24
     {
25 25
         if (is_array($character)) {
26 26
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $character);
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *         If an array of values is passed as the argument, then the returned result will also be an array
47 47
      *            with the same dimensions
48 48
      */
49
-    public static function code(mixed $characters): array|string|int
49
+    public static function code(mixed $characters): array | string | int
50 50
     {
51 51
         if (is_array($characters)) {
52 52
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $characters);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Trim.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      *         If an array of values is passed as the argument, then the returned result will also be an array
40 40
      *            with the same dimensions
41 41
      */
42
-    public static function spaces(mixed $stringValue = ''): array|string
42
+    public static function spaces(mixed $stringValue = ''): array | string
43 43
     {
44 44
         if (is_array($stringValue)) {
45 45
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $stringValue);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Text.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      *         If an array of values is passed for the argument, then the returned result
22 22
      *            will also be an array with matching dimensions
23 23
      */
24
-    public static function length(mixed $value = ''): array|int
24
+    public static function length(mixed $value = ''): array | int
25 25
     {
26 26
         if (is_array($value)) {
27 27
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *         If an array of values is passed for either of the arguments, then the returned result
47 47
      *            will also be an array with matching dimensions
48 48
      */
49
-    public static function exact(mixed $value1, mixed $value2): array|bool
49
+    public static function exact(mixed $value1, mixed $value2): array | bool
50 50
     {
51 51
         if (is_array($value1) || is_array($value2)) {
52 52
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value1, $value2);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *         If an array of values is passed for the argument, then the returned result
69 69
      *            will also be an array with matching dimensions
70 70
      */
71
-    public static function test(mixed $testValue = ''): array|string
71
+    public static function test(mixed $testValue = ''): array | string
72 72
     {
73 73
         if (is_array($testValue)) {
74 74
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $testValue);
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
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      *         If an array of values is passed for either of the arguments, then the returned result
79 79
      *            will also be an array with matching dimensions
80 80
      */
81
-    public static function FIXEDFORMAT(mixed $value, mixed $decimals = 2, mixed $noCommas = false): array|string
81
+    public static function FIXEDFORMAT(mixed $value, mixed $decimals = 2, mixed $noCommas = false): array | string
82 82
     {
83 83
         if (is_array($value) || is_array($decimals) || is_array($noCommas)) {
84 84
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $decimals, $noCommas);
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      *         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);
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      *         If an array of values is passed for either of the arguments, then the returned result
230 230
      *            will also be an array with matching dimensions
231 231
      */
232
-    public static function valueToText(mixed $value, mixed $format = false): array|string
232
+    public static function valueToText(mixed $value, mixed $format = false): array | string
233 233
     {
234 234
         if (is_array($value) || is_array($format)) {
235 235
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $format);
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
      * @param mixed $groupSeparator A string with the group/thousands separator to use, defaults to locale defined value
271 271
      *                         Or can be an array of values
272 272
      */
273
-    public static function NUMBERVALUE(mixed $value = '', mixed $decimalSeparator = null, mixed $groupSeparator = null): array|string|float
273
+    public static function NUMBERVALUE(mixed $value = '', mixed $decimalSeparator = null, mixed $groupSeparator = null): array | string | float
274 274
     {
275 275
         if (is_array($value) || is_array($decimalSeparator) || is_array($groupSeparator)) {
276 276
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $decimalSeparator, $groupSeparator);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Search.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      *         If an array of values is passed for the $value or $chars arguments, then the returned result
26 26
      *            will also be an array with matching dimensions
27 27
      */
28
-    public static function sensitive(mixed $needle, mixed $haystack, mixed $offset = 1): array|string|int
28
+    public static function sensitive(mixed $needle, mixed $haystack, mixed $offset = 1): array | string | int
29 29
     {
30 30
         if (is_array($needle) || is_array($haystack) || is_array($offset)) {
31 31
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $needle, $haystack, $offset);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *         If an array of values is passed for the $value or $chars arguments, then the returned result
68 68
      *            will also be an array with matching dimensions
69 69
      */
70
-    public static function insensitive(mixed $needle, mixed $haystack, mixed $offset = 1): array|string|int
70
+    public static function insensitive(mixed $needle, mixed $haystack, mixed $offset = 1): array | string | int
71 71
     {
72 72
         if (is_array($needle) || is_array($haystack) || is_array($offset)) {
73 73
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $needle, $haystack, $offset);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Replace.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      *         If an array of values is passed for either of the arguments, then the returned result
30 30
      *            will also be an array with matching dimensions
31 31
      */
32
-    public static function replace(mixed $oldText, mixed $start, mixed $chars, mixed $newText): array|string
32
+    public static function replace(mixed $oldText, mixed $start, mixed $chars, mixed $newText): array | string
33 33
     {
34 34
         if (is_array($oldText) || is_array($start) || is_array($chars) || is_array($newText)) {
35 35
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $oldText, $start, $chars, $newText);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *         If an array of values is passed for either of the arguments, then the returned result
71 71
      *            will also be an array with matching dimensions
72 72
      */
73
-    public static function substitute(mixed $text = '', mixed $fromText = '', mixed $toText = '', mixed $instance = null): array|string
73
+    public static function substitute(mixed $text = '', mixed $fromText = '', mixed $toText = '', mixed $instance = null): array | string
74 74
     {
75 75
         if (is_array($text) || is_array($fromText) || is_array($toText) || is_array($instance)) {
76 76
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $text, $fromText, $toText, $instance);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/CaseConvert.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      *         If an array of values 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 lower(mixed $mixedCaseValue): array|string
24
+    public static function lower(mixed $mixedCaseValue): array | string
25 25
     {
26 26
         if (is_array($mixedCaseValue)) {
27 27
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $mixedCaseValue);
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      *         If an array of values is passed as the argument, then the returned result will also be an array
45 45
      *            with the same dimensions
46 46
      */
47
-    public static function upper(mixed $mixedCaseValue): array|string
47
+    public static function upper(mixed $mixedCaseValue): array | string
48 48
     {
49 49
         if (is_array($mixedCaseValue)) {
50 50
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $mixedCaseValue);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *         If an array of values is passed as the argument, then the returned result will also be an array
68 68
      *            with the same dimensions
69 69
      */
70
-    public static function proper(mixed $mixedCaseValue): array|string
70
+    public static function proper(mixed $mixedCaseValue): array | string
71 71
     {
72 72
         if (is_array($mixedCaseValue)) {
73 73
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $mixedCaseValue);
Please login to merge, or discard this patch.