Passed
Pull Request — master (#3743)
by Adrien
15:10
created
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.
src/PhpSpreadsheet/Calculation/LookupRef/Indirect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      *
64 64
      * @return array|string An array containing a cell or range of cells, or a string on error
65 65
      */
66
-    public static function INDIRECT($cellAddress, mixed $a1fmt, Cell $cell): string|array
66
+    public static function INDIRECT($cellAddress, mixed $a1fmt, Cell $cell): string | array
67 67
     {
68 68
         [$baseCol, $baseRow] = Coordinate::indexesFromString($cell->getCoordinate());
69 69
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial/TreasuryBill.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @return float|string Result, or a string containing an error
26 26
      */
27
-    public static function bondEquivalentYield(mixed $settlement, mixed $maturity, mixed $discount): string|float
27
+    public static function bondEquivalentYield(mixed $settlement, mixed $maturity, mixed $discount): string | float
28 28
     {
29 29
         $settlement = Functions::flattenSingleValue($settlement);
30 30
         $maturity = Functions::flattenSingleValue($maturity);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      *
70 70
      * @return float|string Result, or a string containing an error
71 71
      */
72
-    public static function price(mixed $settlement, mixed $maturity, mixed $discount): string|float
72
+    public static function price(mixed $settlement, mixed $maturity, mixed $discount): string | float
73 73
     {
74 74
         $settlement = Functions::flattenSingleValue($settlement);
75 75
         $maturity = Functions::flattenSingleValue($maturity);
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      *                                The maturity date is the date when the Treasury bill expires.
118 118
      * @param float|string $price The Treasury bill's price per $100 face value
119 119
      */
120
-    public static function yield(mixed $settlement, mixed $maturity, $price): string|float
120
+    public static function yield(mixed $settlement, mixed $maturity, $price): string | float
121 121
     {
122 122
         $settlement = Functions::flattenSingleValue($settlement);
123 123
         $maturity = Functions::flattenSingleValue($maturity);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial/Amortization.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         mixed $period,
48 48
         mixed $rate,
49 49
         mixed $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD
50
-    ): string|float {
50
+    ): string | float {
51 51
         $cost = Functions::flattenSingleValue($cost);
52 52
         $purchased = Functions::flattenSingleValue($purchased);
53 53
         $firstPeriod = Functions::flattenSingleValue($firstPeriod);
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         mixed $period,
134 134
         mixed $rate,
135 135
         mixed $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD
136
-    ): string|float {
136
+    ): string | float {
137 137
         $cost = Functions::flattenSingleValue($cost);
138 138
         $purchased = Functions::flattenSingleValue($purchased);
139 139
         $firstPeriod = Functions::flattenSingleValue($firstPeriod);
Please login to merge, or discard this patch.