Passed
Pull Request — master (#3718)
by Adrien
14:12
created
Category
src/PhpSpreadsheet/Calculation/DateTime.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      *
37 37
      * @return float|string Excel date/time serial value, or string if error
38 38
      */
39
-    public static function getDateValue($dateValue): float|string
39
+    public static function getDateValue($dateValue): float | string
40 40
     {
41 41
         try {
42 42
             return DateTimeExcel\Helpers::getDateValue($dateValue);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Information/Value.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 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($value = null): array|bool
149
+    public static function isLogical($value = null): array | bool
150 150
     {
151 151
         if (is_array($value)) {
152 152
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial/Coupons.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
         $maturity,
247 247
         $frequency,
248 248
         $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD
249
-    ): string|float {
249
+    ): string | float {
250 250
         $settlement = Functions::flattenSingleValue($settlement);
251 251
         $maturity = Functions::flattenSingleValue($maturity);
252 252
         $frequency = Functions::flattenSingleValue($frequency);
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
         $maturity,
362 362
         $frequency,
363 363
         $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD
364
-    ): string|float {
364
+    ): string | float {
365 365
         $settlement = Functions::flattenSingleValue($settlement);
366 366
         $maturity = Functions::flattenSingleValue($maturity);
367 367
         $frequency = Functions::flattenSingleValue($frequency);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial/CashFlow/Constant/Periodic.php 1 patch
Spacing   +2 added lines, -2 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);
Please login to merge, or discard this patch.
Calculation/Financial/CashFlow/Constant/Periodic/Interest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 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);
Please login to merge, or discard this patch.
Calculation/Financial/CashFlow/Constant/Periodic/Payments.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         $presentValue,
78 78
         $futureValue = 0,
79 79
         $type = FinancialConstants::PAYMENT_END_OF_PERIOD
80
-    ): string|float {
80
+    ): string | float {
81 81
         $interestRate = Functions::flattenSingleValue($interestRate);
82 82
         $period = Functions::flattenSingleValue($period);
83 83
         $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Logarithms.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
27 27
      *            with the same dimensions
28 28
      */
29
-    public static function withBase($number, $base = 10): array|string|float
29
+    public static function withBase($number, $base = 10): array | string | float
30 30
     {
31 31
         if (is_array($number) || is_array($base)) {
32 32
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $base);
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
57 57
      *            with the same dimensions
58 58
      */
59
-    public static function base10($number): array|string|float
59
+    public static function base10($number): array | string | float
60 60
     {
61 61
         if (is_array($number)) {
62 62
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
85 85
      *            with the same dimensions
86 86
      */
87
-    public static function natural($number): array|string|float
87
+    public static function natural($number): array | string | float
88 88
     {
89 89
         if (is_array($number)) {
90 90
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Sign.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      *         If an array of numbers 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 evaluate($number): array|string|int
24
+    public static function evaluate($number): array | string | int
25 25
     {
26 26
         if (is_array($number)) {
27 27
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/MatrixFunctions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      *
58 58
      * @return array|string The resulting array, or a string containing an error
59 59
      */
60
-    public static function sequence($rows = 1, $columns = 1, $start = 1, $step = 1): string|array
60
+    public static function sequence($rows = 1, $columns = 1, $start = 1, $step = 1): string | array
61 61
     {
62 62
         try {
63 63
             $rows = (int) Helpers::validateNumericNullSubstitution($rows, 1);
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      *
121 121
      * @return array|string The result, or a string containing an error
122 122
      */
123
-    public static function inverse($matrixValues): array|string
123
+    public static function inverse($matrixValues): array | string
124 124
     {
125 125
         try {
126 126
             $matrix = self::getMatrix($matrixValues);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      *
144 144
      * @return array|string The result, or a string containing an error
145 145
      */
146
-    public static function multiply($matrixData1, $matrixData2): array|string
146
+    public static function multiply($matrixData1, $matrixData2): array | string
147 147
     {
148 148
         try {
149 149
             $matrixA = self::getMatrix($matrixData1);
Please login to merge, or discard this patch.