Failed Conditions
Pull Request — master (#3693)
by Franck
12:50
created
src/PhpSpreadsheet/Calculation/Engineering/ConvertOctal.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
45 45
      *            with the same dimensions
46 46
      */
47
-    public static function toBinary($value, $places = null): array|string
47
+    public static function toBinary($value, $places = null): array | string
48 48
     {
49 49
         if (is_array($value) || is_array($places)) {
50 50
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
143 143
      *            with the same dimensions
144 144
      */
145
-    public static function toHex($value, $places = null): array|string
145
+    public static function toHex($value, $places = null): array | string
146 146
     {
147 147
         if (is_array($value) || is_array($places)) {
148 148
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/LookupRef/RowColumnInformation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return int|int[]
44 44
      */
45
-    public static function COLUMN($cellAddress = null, ?Cell $cell = null): int|array
45
+    public static function COLUMN($cellAddress = null, ?Cell $cell = null): int | array
46 46
     {
47 47
         if (self::cellAddressNullOrWhitespace($cellAddress)) {
48 48
             return self::cellColumn($cell);
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      *
138 138
      * @return int|mixed[]
139 139
      */
140
-    public static function ROW($cellAddress = null, ?Cell $cell = null): int|array
140
+    public static function ROW($cellAddress = null, ?Cell $cell = null): int | array
141 141
     {
142 142
         if (self::cellAddressNullOrWhitespace($cellAddress)) {
143 143
             return self::cellRow($cell);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/Time.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
44 44
      *            with the same dimensions
45 45
      */
46
-    public static function fromHMS($hour, $minute, $second): array|string|float|int|DateTime
46
+    public static function fromHMS($hour, $minute, $second): array | string | float | int | DateTime
47 47
     {
48 48
         if (is_array($hour) || is_array($minute) || is_array($second)) {
49 49
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $hour, $minute, $second);
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/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/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.
src/PhpSpreadsheet/Calculation/MathTrig/Floor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * Avoid Scrutinizer problems concerning complexity.
130 130
      */
131
-    private static function argumentsOkPrecise(float $number, float $significance): string|float
131
+    private static function argumentsOkPrecise(float $number, float $significance): string | float
132 132
     {
133 133
         if ($significance == 0.0) {
134 134
             return ExcelError::DIV0();
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      *
146 146
      * @return float|string Rounded Number, or a string containing an error
147 147
      */
148
-    private static function argsOk(float $number, float $significance, int $mode): string|float
148
+    private static function argsOk(float $number, float $significance, int $mode): string | float
149 149
     {
150 150
         if (!$significance) {
151 151
             return ExcelError::DIV0();
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     /**
172 172
      * Avoid Scrutinizer problems concerning complexity.
173 173
      */
174
-    private static function argumentsOk(float $number, float $significance): string|float
174
+    private static function argumentsOk(float $number, float $significance): string | float
175 175
     {
176 176
         if ($significance == 0.0) {
177 177
             return ExcelError::DIV0();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Factorial.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 fact($factVal): array|string|float|int
30
+    public static function fact($factVal): array | string | float | int
31 31
     {
32 32
         if (is_array($factVal)) {
33 33
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $factVal);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
70 70
      *            with the same dimensions
71 71
      */
72
-    public static function factDouble($factVal): array|string|float|int
72
+    public static function factDouble($factVal): array | string | float | int
73 73
     {
74 74
         if (is_array($factVal)) {
75 75
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $factVal);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @return float|string The result, or a string containing an error
103 103
      */
104
-    public static function multinomial(...$args): string|int|float
104
+    public static function multinomial(...$args): string | int | float
105 105
     {
106 106
         $summer = 0;
107 107
         $divisor = 1;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial/Helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      *
25 25
      * @return int|string Result, or a string containing an error
26 26
      */
27
-    public static function daysPerYear($year, $basis = 0): string|int
27
+    public static function daysPerYear($year, $basis = 0): string | int
28 28
     {
29 29
         if (!is_numeric($basis)) {
30 30
             return ExcelError::NAN();
Please login to merge, or discard this patch.