Failed Conditions
Pull Request — master (#3723)
by Adrien
13:34
created
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.
src/PhpSpreadsheet/Calculation/TextData/Extract.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      *         If an array of values is passed for the $value or $chars arguments, then the returned result
25 25
      *            will also be an array with matching dimensions
26 26
      */
27
-    public static function left(mixed $value, mixed $chars = 1): array|string
27
+    public static function left(mixed $value, mixed $chars = 1): array | string
28 28
     {
29 29
         if (is_array($value) || is_array($chars)) {
30 30
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $chars);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      *         If an array of values is passed for the $value, $start or $chars arguments, then the returned result
55 55
      *            will also be an array with matching dimensions
56 56
      */
57
-    public static function mid(mixed $value, mixed $start, mixed $chars): array|string
57
+    public static function mid(mixed $value, mixed $start, mixed $chars): array | string
58 58
     {
59 59
         if (is_array($value) || is_array($start) || is_array($chars)) {
60 60
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $start, $chars);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      *         If an array of values is passed for the $value or $chars arguments, then the returned result
84 84
      *            will also be an array with matching dimensions
85 85
      */
86
-    public static function right(mixed $value, mixed $chars = 1): array|string
86
+    public static function right(mixed $value, mixed $chars = 1): array | string
87 87
     {
88 88
         if (is_array($value) || is_array($chars)) {
89 89
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $chars);
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      *         If an array of values is passed for any of the arguments, then the returned result
127 127
      *            will also be an array with matching dimensions
128 128
      */
129
-    public static function before(mixed $text, $delimiter, mixed $instance = 1, mixed $matchMode = 0, mixed $matchEnd = 0, mixed $ifNotFound = '#N/A'): array|string
129
+    public static function before(mixed $text, $delimiter, mixed $instance = 1, mixed $matchMode = 0, mixed $matchEnd = 0, mixed $ifNotFound = '#N/A'): array | string
130 130
     {
131 131
         if (is_array($text) || is_array($instance) || is_array($matchMode) || is_array($matchEnd) || is_array($ifNotFound)) {
132 132
             return self::evaluateArrayArgumentsIgnore([self::class, __FUNCTION__], 1, $text, $delimiter, $instance, $matchMode, $matchEnd, $ifNotFound);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      *         If an array of values is passed for any of the arguments, then the returned result
185 185
      *            will also be an array with matching dimensions
186 186
      */
187
-    public static function after(mixed $text, $delimiter, mixed $instance = 1, mixed $matchMode = 0, mixed $matchEnd = 0, mixed $ifNotFound = '#N/A'): array|string
187
+    public static function after(mixed $text, $delimiter, mixed $instance = 1, mixed $matchMode = 0, mixed $matchEnd = 0, mixed $ifNotFound = '#N/A'): array | string
188 188
     {
189 189
         if (is_array($text) || is_array($instance) || is_array($matchMode) || is_array($matchEnd) || is_array($ifNotFound)) {
190 190
             return self::evaluateArrayArgumentsIgnore([self::class, __FUNCTION__], 1, $text, $delimiter, $instance, $matchMode, $matchEnd, $ifNotFound);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Concatenate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      *         If an array of values is passed for the $delimiter or $ignoreEmpty arguments, then the returned result
57 57
      *            will also be an array with matching dimensions
58 58
      */
59
-    public static function TEXTJOIN(mixed $delimiter = '', mixed $ignoreEmpty = true, mixed ...$args): array|string
59
+    public static function TEXTJOIN(mixed $delimiter = '', mixed $ignoreEmpty = true, mixed ...$args): array | string
60 60
     {
61 61
         if (is_array($delimiter) || is_array($ignoreEmpty)) {
62 62
             return self::evaluateArrayArgumentsSubset(
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      *         If an array of values is passed for the $stringValue or $repeatCount arguments, then the returned result
114 114
      *            will also be an array with matching dimensions
115 115
      */
116
-    public static function builtinREPT(mixed $stringValue, mixed $repeatCount): array|string
116
+    public static function builtinREPT(mixed $stringValue, mixed $repeatCount): array | string
117 117
     {
118 118
         if (is_array($stringValue) || is_array($repeatCount)) {
119 119
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $stringValue, $repeatCount);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Logical.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
      *
160 160
      * @return array|bool|string the boolean inverse of the argument
161 161
      */
162
-    public static function NOT(mixed $logical = false): bool|string|array
162
+    public static function NOT(mixed $logical = false): bool | string | array
163 163
     {
164 164
         return Logical\Operations::NOT($logical);
165 165
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/LookupRef/ExcelMatch.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @return array|int|string The relative position of the found item
34 34
      */
35
-    public static function MATCH(mixed $lookupValue, mixed $lookupArray, mixed $matchType = self::MATCHTYPE_LARGEST_VALUE): array|string|int|float
35
+    public static function MATCH(mixed $lookupValue, mixed $lookupArray, mixed $matchType = self::MATCHTYPE_LARGEST_VALUE): array | string | int | float
36 36
     {
37 37
         if (is_array($lookupValue)) {
38 38
             return self::evaluateArrayArgumentsIgnore([self::class, __FUNCTION__], 1, $lookupValue, $lookupArray, $matchType);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         return ExcelError::NA();
79 79
     }
80 80
 
81
-    private static function matchFirstValue(array $lookupArray, mixed $lookupValue): int|string|null
81
+    private static function matchFirstValue(array $lookupArray, mixed $lookupValue): int | string | null
82 82
     {
83 83
         if (is_string($lookupValue)) {
84 84
             $valueIsString = true;
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         return null;
152 152
     }
153 153
 
154
-    private static function matchSmallestValue(array $lookupArray, mixed $lookupValue): int|string|null
154
+    private static function matchSmallestValue(array $lookupArray, mixed $lookupValue): int | string | null
155 155
     {
156 156
         $valueKey = null;
157 157
         if (is_string($lookupValue)) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/LookupRef/Offset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      *
42 42
      * @return array|string An array containing a cell or range of cells, or a string on error
43 43
      */
44
-    public static function OFFSET($cellAddress = null, mixed $rows = 0, mixed $columns = 0, mixed $height = null, mixed $width = null, ?Cell $cell = null): string|array
44
+    public static function OFFSET($cellAddress = null, mixed $rows = 0, mixed $columns = 0, mixed $height = null, mixed $width = null, ?Cell $cell = null): string | array
45 45
     {
46 46
         $rows = Functions::flattenSingleValue($rows);
47 47
         $columns = Functions::flattenSingleValue($columns);
Please login to merge, or discard this patch.