Failed Conditions
Pull Request — master (#3723)
by Adrien
14:15
created
src/PhpSpreadsheet/Calculation/Financial/Securities/Price.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $redemption,
47 47
         $frequency,
48 48
         $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD
49
-    ): string|float {
49
+    ): string | float {
50 50
         $settlement = Functions::flattenSingleValue($settlement);
51 51
         $maturity = Functions::flattenSingleValue($maturity);
52 52
         $rate = Functions::flattenSingleValue($rate);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial/Coupons.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $maturity,
48 48
         $frequency,
49 49
         $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD
50
-    ): string|int|float {
50
+    ): string | int | float {
51 51
         $settlement = Functions::flattenSingleValue($settlement);
52 52
         $maturity = Functions::flattenSingleValue($maturity);
53 53
         $frequency = Functions::flattenSingleValue($frequency);
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $maturity,
111 111
         $frequency,
112 112
         $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD
113
-    ): string|int|float {
113
+    ): string | int | float {
114 114
         $settlement = Functions::flattenSingleValue($settlement);
115 115
         $maturity = Functions::flattenSingleValue($maturity);
116 116
         $frequency = Functions::flattenSingleValue($frequency);
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
         $maturity,
180 180
         $frequency,
181 181
         $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD
182
-    ): string|float {
182
+    ): string | float {
183 183
         $settlement = Functions::flattenSingleValue($settlement);
184 184
         $maturity = Functions::flattenSingleValue($maturity);
185 185
         $frequency = Functions::flattenSingleValue($frequency);
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
         $maturity,
245 245
         $frequency,
246 246
         $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD
247
-    ): string|float {
247
+    ): string | float {
248 248
         $settlement = Functions::flattenSingleValue($settlement);
249 249
         $maturity = Functions::flattenSingleValue($maturity);
250 250
         $frequency = Functions::flattenSingleValue($frequency);
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
         $maturity,
298 298
         $frequency,
299 299
         $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD
300
-    ): string|int {
300
+    ): string | int {
301 301
         $settlement = Functions::flattenSingleValue($settlement);
302 302
         $maturity = Functions::flattenSingleValue($maturity);
303 303
         $frequency = Functions::flattenSingleValue($frequency);
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
         $maturity,
358 358
         $frequency,
359 359
         $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD
360
-    ): string|float {
360
+    ): string | float {
361 361
         $settlement = Functions::flattenSingleValue($settlement);
362 362
         $maturity = Functions::flattenSingleValue($maturity);
363 363
         $frequency = Functions::flattenSingleValue($frequency);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial/Dollar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * @param mixed $fraction Fraction
50 50
      *              Or can be an array of values
51 51
      */
52
-    public static function decimal($fractionalDollar = null, $fraction = 0): array|string|float
52
+    public static function decimal($fractionalDollar = null, $fraction = 0): array | string | float
53 53
     {
54 54
         if (is_array($fractionalDollar) || is_array($fraction)) {
55 55
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $fractionalDollar, $fraction);
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * @param mixed $fraction Fraction
96 96
      *              Or can be an array of values
97 97
      */
98
-    public static function fractional($decimalDollar = null, $fraction = 0): array|string|float
98
+    public static function fractional($decimalDollar = null, $fraction = 0): array | string | float
99 99
     {
100 100
         if (is_array($decimalDollar) || is_array($fraction)) {
101 101
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $decimalDollar, $fraction);
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($value, $decimals = 2, $noCommas = false): array|string
81
+    public static function FIXEDFORMAT($value, $decimals = 2, $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($value, $format): array|string
122
+    public static function TEXTFORMAT($value, $format): array | string
123 123
     {
124 124
         if (is_array($value) || is_array($format)) {
125 125
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $format);
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
      *         If an array of values is passed for either of the arguments, then the returned result
231 231
      *            will also be an array with matching dimensions
232 232
      */
233
-    public static function valueToText($value, $format = false): array|string
233
+    public static function valueToText($value, $format = false): array | string
234 234
     {
235 235
         if (is_array($value) || is_array($format)) {
236 236
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $format);
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      * @param mixed $groupSeparator A string with the group/thousands separator to use, defaults to locale defined value
278 278
      *                         Or can be an array of values
279 279
      */
280
-    public static function NUMBERVALUE($value = '', $decimalSeparator = null, $groupSeparator = null): array|string|float
280
+    public static function NUMBERVALUE($value = '', $decimalSeparator = null, $groupSeparator = null): array | string | float
281 281
     {
282 282
         if (is_array($value) || is_array($decimalSeparator) || is_array($groupSeparator)) {
283 283
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $decimalSeparator, $groupSeparator);
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($delimiter = '', $ignoreEmpty = true, ...$args): array|string
59
+    public static function TEXTJOIN($delimiter = '', $ignoreEmpty = true, ...$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($stringValue, $repeatCount): array|string
116
+    public static function builtinREPT($stringValue, $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/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($needle, $haystack, $offset = 1): array|string|int
28
+    public static function sensitive($needle, $haystack, $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($needle, $haystack, $offset = 1): array|string|int
70
+    public static function insensitive($needle, $haystack, $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/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($value, $chars = 1): array|string
27
+    public static function left($value, $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($value, $start, $chars): array|string
57
+    public static function mid($value, $start, $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($value, $chars = 1): array|string
86
+    public static function right($value, $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($text, $delimiter, $instance = 1, $matchMode = 0, $matchEnd = 0, $ifNotFound = '#N/A'): array|string
129
+    public static function before($text, $delimiter, $instance = 1, $matchMode = 0, $matchEnd = 0, $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($text, $delimiter, $instance = 1, $matchMode = 0, $matchEnd = 0, $ifNotFound = '#N/A'): array|string
187
+    public static function after($text, $delimiter, $instance = 1, $matchMode = 0, $matchEnd = 0, $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/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($oldText, $start, $chars, $newText): array|string
32
+    public static function replace($oldText, $start, $chars, $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($text = '', $fromText = '', $toText = '', $instance = null): array|string
73
+    public static function substitute($text = '', $fromText = '', $toText = '', $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/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($value = ''): array|int
24
+    public static function length($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($value1, $value2): array|bool
49
+    public static function exact($value1, $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($testValue = ''): array|string
71
+    public static function test($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.