Failed Conditions
Pull Request — master (#3723)
by Adrien
14:15
created
src/PhpSpreadsheet/Calculation/DateTimeExcel/TimeParts.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
28 28
      *            with the same dimensions
29 29
      */
30
-    public static function hour($timeValue): array|string|int
30
+    public static function hour($timeValue): array | string | int
31 31
     {
32 32
         if (is_array($timeValue)) {
33 33
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
69 69
      *            with the same dimensions
70 70
      */
71
-    public static function minute($timeValue): array|string|int
71
+    public static function minute($timeValue): array | string | int
72 72
     {
73 73
         if (is_array($timeValue)) {
74 74
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue);
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
110 110
      *            with the same dimensions
111 111
      */
112
-    public static function second($timeValue): array|string|int
112
+    public static function second($timeValue): array | string | int
113 113
     {
114 114
         if (is_array($timeValue)) {
115 115
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/TimeValue.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
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
37 37
      *            with the same dimensions
38 38
      */
39
-    public static function fromString($timeValue): array|string|Datetime|int|float
39
+    public static function fromString($timeValue): array | string | Datetime | int | float
40 40
     {
41 41
         if (is_array($timeValue)) {
42 42
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Helpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      *
14 14
      * @return float|string quotient or DIV0 if denominator is too small
15 15
      */
16
-    public static function verySmallDenominator(float $numerator, float $denominator): string|float
16
+    public static function verySmallDenominator(float $numerator, float $denominator): string | float
17 17
     {
18 18
         return (abs($denominator) < 1.0E-12) ? ExcelError::DIV0() : ($numerator / $denominator);
19 19
     }
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      *
24 24
      * @param mixed $number
25 25
      */
26
-    public static function validateNumericNullBool($number): int|float
26
+    public static function validateNumericNullBool($number): int | float
27 27
     {
28 28
         $number = Functions::flattenSingleValue($number);
29 29
         if ($number === null) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Lcm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      *
50 50
      * @return int|string Lowest Common Multiplier, or a string containing an error
51 51
      */
52
-    public static function evaluate(...$args): int|string
52
+    public static function evaluate(...$args): int | string
53 53
     {
54 54
         try {
55 55
             $arrayArgs = [];
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Combinations.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 numbers is passed as the argument, then the returned result will also be an array
26 26
      *            with the same dimensions
27 27
      */
28
-    public static function withoutRepetition($numObjs, $numInSet): array|string|float
28
+    public static function withoutRepetition($numObjs, $numInSet): array | string | float
29 29
     {
30 30
         if (is_array($numObjs) || is_array($numInSet)) {
31 31
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $numObjs, $numInSet);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
60 60
      *            with the same dimensions
61 61
      */
62
-    public static function withRepetition($numObjs, $numInSet): array|int|string|float
62
+    public static function withRepetition($numObjs, $numInSet): array | int | string | float
63 63
     {
64 64
         if (is_array($numObjs) || is_array($numInSet)) {
65 65
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $numObjs, $numInSet);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Trig/Cotangent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
74 74
      *            with the same dimensions
75 75
      */
76
-    public static function acot($number): array|string|float
76
+    public static function acot($number): array | string | float
77 77
     {
78 78
         if (is_array($number)) {
79 79
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Ceiling.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
71 71
      *            with the same dimensions
72 72
      */
73
-    public static function math($number, $significance = null, $mode = 0): array|string|float
73
+    public static function math($number, $significance = null, $mode = 0): array | string | float
74 74
     {
75 75
         if (is_array($number) || is_array($significance) || is_array($mode)) {
76 76
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $significance, $mode);
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
112 112
      *            with the same dimensions
113 113
      */
114
-    public static function precise($number, $significance = 1): array|string|float
114
+    public static function precise($number, $significance = 1): array | string | float
115 115
     {
116 116
         if (is_array($number) || is_array($significance)) {
117 117
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $significance);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     /**
144 144
      * Avoid Scrutinizer problems concerning complexity.
145 145
      */
146
-    private static function argumentsOk(float $number, float $significance): float|string
146
+    private static function argumentsOk(float $number, float $significance): float | string
147 147
     {
148 148
         if (empty($number * $significance)) {
149 149
             return 0.0;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/SumSquares.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      *
21 21
      * @return float|string
22 22
      */
23
-    public static function sumSquare(...$args): string|int|float
23
+    public static function sumSquare(...$args): string | int | float
24 24
     {
25 25
         try {
26 26
             $returnValue = 0;
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      *
66 66
      * @return float|string
67 67
      */
68
-    public static function sumXSquaredMinusYSquared($matrixData1, $matrixData2): string|int|float
68
+    public static function sumXSquaredMinusYSquared($matrixData1, $matrixData2): string | int | float
69 69
     {
70 70
         try {
71 71
             $array1 = Functions::flattenArray($matrixData1);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      *
94 94
      * @return float|string
95 95
      */
96
-    public static function sumXSquaredPlusYSquared($matrixData1, $matrixData2): string|int|float
96
+    public static function sumXSquaredPlusYSquared($matrixData1, $matrixData2): string | int | float
97 97
     {
98 98
         try {
99 99
             $array1 = Functions::flattenArray($matrixData1);
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *
122 122
      * @return float|string
123 123
      */
124
-    public static function sumXMinusYSquared($matrixData1, $matrixData2): string|int|float
124
+    public static function sumXMinusYSquared($matrixData1, $matrixData2): string | int | float
125 125
     {
126 126
         try {
127 127
             $array1 = Functions::flattenArray($matrixData1);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/IntClass.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.