Failed Conditions
Pull Request — master (#3693)
by Franck
12:50
created
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(mixed $rows = 1, mixed $columns = 1, mixed $start = 1, mixed $step = 1): string|array
60
+    public static function sequence(mixed $rows = 1, mixed $columns = 1, mixed $start = 1, mixed $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(mixed $matrixValues): array|string
123
+    public static function inverse(mixed $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(mixed $matrixData1, mixed $matrixData2): array|string
146
+    public static function multiply(mixed $matrixData1, mixed $matrixData2): array | string
147 147
     {
148 148
         try {
149 149
             $matrixA = self::getMatrix($matrixData1);
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(mixed $numObjs, mixed $numInSet): array|string|float
28
+    public static function withoutRepetition(mixed $numObjs, mixed $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(mixed $numObjs, mixed $numInSet): array|int|string|float
62
+    public static function withRepetition(mixed $numObjs, mixed $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/Roman.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -825,7 +825,7 @@
 block discarded – undo
825 825
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
826 826
      *            with the same dimensions
827 827
      */
828
-    public static function evaluate(mixed $aValue, mixed $style = 0): array|string
828
+    public static function evaluate(mixed $aValue, mixed $style = 0): array | string
829 829
     {
830 830
         if (is_array($aValue) || is_array($style)) {
831 831
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $aValue, $style);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Trig/Tangent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
49 49
      *            with the same dimensions
50 50
      */
51
-    public static function tanh(mixed $angle): array|string|float
51
+    public static function tanh(mixed $angle): array | string | float
52 52
     {
53 53
         if (is_array($angle)) {
54 54
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $angle);
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      *         If an array of numbers is passed as one of the arguments, then the returned result will also be an array
140 140
      *            with the same dimensions
141 141
      */
142
-    public static function atan2(mixed $xCoordinate, mixed $yCoordinate): array|string|float
142
+    public static function atan2(mixed $xCoordinate, mixed $yCoordinate): array | string | float
143 143
     {
144 144
         if (is_array($xCoordinate) || is_array($yCoordinate)) {
145 145
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $xCoordinate, $yCoordinate);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Trig/Cosine.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 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 cos(mixed $number): array|string|float
24
+    public static function cos(mixed $number): array | string | float
25 25
     {
26 26
         if (is_array($number)) {
27 27
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
48 48
      *            with the same dimensions
49 49
      */
50
-    public static function cosh(mixed $number): array|string|float
50
+    public static function cosh(mixed $number): array | string | float
51 51
     {
52 52
         if (is_array($number)) {
53 53
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Trig/Sine.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 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 sin(mixed $angle): array|string|float
24
+    public static function sin(mixed $angle): array | string | float
25 25
     {
26 26
         if (is_array($angle)) {
27 27
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $angle);
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
48 48
      *            with the same dimensions
49 49
      */
50
-    public static function sinh(mixed $angle): array|string|float
50
+    public static function sinh(mixed $angle): array | string | float
51 51
     {
52 52
         if (is_array($angle)) {
53 53
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $angle);
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
     }
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * Many functions accept null/false/true argument treated as 0/0/1.
23 23
      */
24
-    public static function validateNumericNullBool(mixed $number): int|float
24
+    public static function validateNumericNullBool(mixed $number): int | float
25 25
     {
26 26
         $number = Functions::flattenSingleValue($number);
27 27
         if ($number === null) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Sum.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
      *
82 82
      * @return float|int|string The result, or a string containing an error
83 83
      */
84
-    public static function product(mixed ...$args): string|int|float
84
+    public static function product(mixed ...$args): string | int | float
85 85
     {
86 86
         $arrayList = $args;
87 87
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Exp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
21 21
      *            with the same dimensions
22 22
      */
23
-    public static function evaluate(mixed $number): array|string|float
23
+    public static function evaluate(mixed $number): array | string | float
24 24
     {
25 25
         if (is_array($number)) {
26 26
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
Please login to merge, or discard this patch.