Failed Conditions
Pull Request — master (#3693)
by Franck
12:50
created
src/PhpSpreadsheet/Reader/Xls.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7352,7 +7352,7 @@  discard block
 block discarded – undo
7352 7352
      * It can also happen that the REF structure uses the -1 (FFFF) code to indicate deleted sheets,
7353 7353
      * in which case an Exception is thrown.
7354 7354
      */
7355
-    private function readSheetRangeByRefIndex(int $index): string|false
7355
+    private function readSheetRangeByRefIndex(int $index): string | false
7356 7356
     {
7357 7357
         if (isset($this->ref[$index])) {
7358 7358
             $type = $this->externalBooks[$this->ref[$index]['externalBookIndex']]['type'];
@@ -7649,7 +7649,7 @@  discard block
 block discarded – undo
7649 7649
      *
7650 7650
      * @return float
7651 7651
      */
7652
-    private static function extractNumber($data): int|float
7652
+    private static function extractNumber($data): int | float
7653 7653
     {
7654 7654
         $rknumhigh = self::getInt4d($data, 4);
7655 7655
         $rknumlow = self::getInt4d($data, 0);
@@ -7677,7 +7677,7 @@  discard block
 block discarded – undo
7677 7677
      *
7678 7678
      * @return float
7679 7679
      */
7680
-    private static function getIEEE754($rknum): float|int
7680
+    private static function getIEEE754($rknum): float | int
7681 7681
     {
7682 7682
         if (($rknum & 0x02) != 0) {
7683 7683
             $value = $rknum >> 2;
@@ -7988,7 +7988,7 @@  discard block
 block discarded – undo
7988 7988
     {
7989 7989
     }
7990 7990
 
7991
-    private function readCFFormula(string $recordData, int $offset, int $size): float|int|string|null
7991
+    private function readCFFormula(string $recordData, int $offset, int $size): float | int | string | null
7992 7992
     {
7993 7993
         try {
7994 7994
             $formula = substr($recordData, $offset, $size);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xls/ErrorCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      *
20 20
      * @param int $code
21 21
      */
22
-    public static function lookup($code): string|bool
22
+    public static function lookup($code): string | bool
23 23
     {
24 24
         return self::ERROR_CODE_MAP[$code] ?? false;
25 25
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Database.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @TODO    The field argument is optional. If field is omitted, DCOUNT counts all records in the
75 75
      *            database that match the criteria.
76 76
      */
77
-    public static function DCOUNT($database, $field, $criteria): string|int
77
+    public static function DCOUNT($database, $field, $criteria): string | int
78 78
     {
79 79
         return Database\DCount::evaluate($database, $field, $criteria);
80 80
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      *                                        the column label in which you specify a condition for the
107 107
      *                                        column.
108 108
      */
109
-    public static function DCOUNTA($database, $field, $criteria): string|int
109
+    public static function DCOUNTA($database, $field, $criteria): string | int
110 110
     {
111 111
         return Database\DCountA::evaluate($database, $field, $criteria);
112 112
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/ConvertBinary.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
78 78
      *            with the same dimensions
79 79
      */
80
-    public static function toHex($value, $places = null): array|string
80
+    public static function toHex($value, $places = null): array | string
81 81
     {
82 82
         if (is_array($value) || is_array($places)) {
83 83
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
131 131
      *            with the same dimensions
132 132
      */
133
-    public static function toOctal($value, $places = null): array|string
133
+    public static function toOctal($value, $places = null): array | string
134 134
     {
135 135
         if (is_array($value) || is_array($places)) {
136 136
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/Compare.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
30 30
      *            with the same dimensions
31 31
      */
32
-    public static function DELTA($a, $b = 0.0): array|string|int
32
+    public static function DELTA($a, $b = 0.0): array | string | int
33 33
     {
34 34
         if (is_array($a) || is_array($b)) {
35 35
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $a, $b);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
65 65
      *            with the same dimensions
66 66
      */
67
-    public static function GESTEP($number, $step = 0.0): array|string|int
67
+    public static function GESTEP($number, $step = 0.0): array | string | int
68 68
     {
69 69
         if (is_array($number) || is_array($step)) {
70 70
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $step);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/ComplexOperations.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
30 30
      *            with the same dimensions
31 31
      */
32
-    public static function IMDIV($complexDividend, $complexDivisor): array|string
32
+    public static function IMDIV($complexDividend, $complexDivisor): array | string
33 33
     {
34 34
         if (is_array($complexDividend) || is_array($complexDivisor)) {
35 35
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $complexDividend, $complexDivisor);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
60 60
      *            with the same dimensions
61 61
      */
62
-    public static function IMSUB($complexNumber1, $complexNumber2): array|string
62
+    public static function IMSUB($complexNumber1, $complexNumber2): array | string
63 63
     {
64 64
         if (is_array($complexNumber1) || is_array($complexNumber2)) {
65 65
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $complexNumber1, $complexNumber2);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/BitWise.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
42 42
      *            with the same dimensions
43 43
      */
44
-    public static function BITAND($number1, $number2): array|string|int
44
+    public static function BITAND($number1, $number2): array | string | int
45 45
     {
46 46
         if (is_array($number1) || is_array($number2)) {
47 47
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number1, $number2);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
77 77
      *            with the same dimensions
78 78
      */
79
-    public static function BITOR($number1, $number2): array|string|int
79
+    public static function BITOR($number1, $number2): array | string | int
80 80
     {
81 81
         if (is_array($number1) || is_array($number2)) {
82 82
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number1, $number2);
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
113 113
      *            with the same dimensions
114 114
      */
115
-    public static function BITXOR($number1, $number2): array|string|int
115
+    public static function BITXOR($number1, $number2): array | string | int
116 116
     {
117 117
         if (is_array($number1) || is_array($number2)) {
118 118
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number1, $number2);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
149 149
      *            with the same dimensions
150 150
      */
151
-    public static function BITLSHIFT($number, $shiftAmount): array|string|float
151
+    public static function BITLSHIFT($number, $shiftAmount): array | string | float
152 152
     {
153 153
         if (is_array($number) || is_array($shiftAmount)) {
154 154
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $shiftAmount);
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
187 187
      *            with the same dimensions
188 188
      */
189
-    public static function BITRSHIFT($number, $shiftAmount): array|string|float
189
+    public static function BITRSHIFT($number, $shiftAmount): array | string | float
190 190
     {
191 191
         if (is_array($number) || is_array($shiftAmount)) {
192 192
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $shiftAmount);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/ErfC.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      *
53 53
      * @return float
54 54
      */
55
-    private static function erfcValue($value): float|int
55
+    private static function erfcValue($value): float | int
56 56
     {
57 57
         $value = (float) $value;
58 58
         if (abs($value) < 2.2) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/ConvertHex.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
39 39
      *            with the same dimensions
40 40
      */
41
-    public static function toBinary($value, $places = null): array|string
41
+    public static function toBinary($value, $places = null): array | string
42 42
     {
43 43
         if (is_array($value) || is_array($places)) {
44 44
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
146 146
      *            with the same dimensions
147 147
      */
148
-    public static function toOctal($value, $places = null): array|string
148
+    public static function toOctal($value, $places = null): array | string
149 149
     {
150 150
         if (is_array($value) || is_array($places)) {
151 151
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
Please login to merge, or discard this patch.