Passed
Pull Request — master (#3718)
by Adrien
12:54
created
Category
Calculation/Financial/CashFlow/Constant/Periodic/Interest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $presentValue,
38 38
         $futureValue = 0,
39 39
         $type = FinancialConstants::PAYMENT_END_OF_PERIOD
40
-    ): string|float {
40
+    ): string | float {
41 41
         $interestRate = Functions::flattenSingleValue($interestRate);
42 42
         $period = Functions::flattenSingleValue($period);
43 43
         $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * @param mixed $numberOfPeriods is the number of payments for the annuity
88 88
      * @param mixed $principleRemaining is the loan amount or present value of the payments
89 89
      */
90
-    public static function schedulePayment($interestRate, $period, $numberOfPeriods, $principleRemaining): string|float
90
+    public static function schedulePayment($interestRate, $period, $numberOfPeriods, $principleRemaining): string | float
91 91
     {
92 92
         $interestRate = Functions::flattenSingleValue($interestRate);
93 93
         $period = Functions::flattenSingleValue($period);
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         $futureValue = 0.0,
157 157
         $type = FinancialConstants::PAYMENT_END_OF_PERIOD,
158 158
         $guess = 0.1
159
-    ): string|float {
159
+    ): string | float {
160 160
         $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods);
161 161
         $payment = Functions::flattenSingleValue($payment);
162 162
         $presentValue = Functions::flattenSingleValue($presentValue);
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
         return $close ? $rate : ExcelError::NAN();
194 194
     }
195 195
 
196
-    private static function rateNextGuess(float $rate, int $numberOfPeriods, float $payment, float $presentValue, float $futureValue, int $type): string|float
196
+    private static function rateNextGuess(float $rate, int $numberOfPeriods, float $payment, float $presentValue, float $futureValue, int $type): string | float
197 197
     {
198 198
         if ($rate == 0.0) {
199 199
             return ExcelError::NAN();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial/CashFlow/Constant/Periodic.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $payment = 0.0,
36 36
         $presentValue = 0.0,
37 37
         $type = FinancialConstants::PAYMENT_END_OF_PERIOD
38
-    ): string|float {
38
+    ): string | float {
39 39
         $rate = Functions::flattenSingleValue($rate);
40 40
         $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods);
41 41
         $payment = ($payment === null) ? 0.0 : Functions::flattenSingleValue($payment);
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $payment = 0.0,
75 75
         $futureValue = 0.0,
76 76
         $type = FinancialConstants::PAYMENT_END_OF_PERIOD
77
-    ): string|float {
77
+    ): string | float {
78 78
         $rate = Functions::flattenSingleValue($rate);
79 79
         $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods);
80 80
         $payment = ($payment === null) ? 0.0 : Functions::flattenSingleValue($payment);
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         float $presentValue,
181 181
         float $futureValue,
182 182
         int $type
183
-    ): string|float {
183
+    ): string | float {
184 184
         if ($rate != 0.0) {
185 185
             if ($presentValue == 0.0) {
186 186
                 return ExcelError::NAN();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial/Depreciation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      *
37 37
      * @return float|string
38 38
      */
39
-    public static function DB($cost, $salvage, $life, $period, $month = 12): string|float|int
39
+    public static function DB($cost, $salvage, $life, $period, $month = 12): string | float | int
40 40
     {
41 41
         $cost = Functions::flattenSingleValue($cost);
42 42
         $salvage = Functions::flattenSingleValue($salvage);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      *
151 151
      * @return float|string Result, or a string containing an error
152 152
      */
153
-    public static function SLN($cost, $salvage, $life): string|float
153
+    public static function SLN($cost, $salvage, $life): string | float
154 154
     {
155 155
         $cost = Functions::flattenSingleValue($cost);
156 156
         $salvage = Functions::flattenSingleValue($salvage);
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      *
184 184
      * @return float|string Result, or a string containing an error
185 185
      */
186
-    public static function SYD($cost, $salvage, $life, $period): string|float
186
+    public static function SYD($cost, $salvage, $life, $period): string | float
187 187
     {
188 188
         $cost = Functions::flattenSingleValue($cost);
189 189
         $salvage = Functions::flattenSingleValue($salvage);
Please login to merge, or discard this patch.
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.