Failed Conditions
Pull Request — master (#3872)
by Adrien
12:52
created
src/PhpSpreadsheet/Reader/Xls.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6910,7 +6910,7 @@  discard block
 block discarded – undo
6910 6910
      * It can also happen that the REF structure uses the -1 (FFFF) code to indicate deleted sheets,
6911 6911
      * in which case an Exception is thrown.
6912 6912
      */
6913
-    private function readSheetRangeByRefIndex(int $index): string|false
6913
+    private function readSheetRangeByRefIndex(int $index): string | false
6914 6914
     {
6915 6915
         if (isset($this->ref[$index])) {
6916 6916
             $type = $this->externalBooks[$this->ref[$index]['externalBookIndex']]['type'];
@@ -7184,7 +7184,7 @@  discard block
 block discarded – undo
7184 7184
      *
7185 7185
      * @param string $data Binary string that is at least 8 bytes long
7186 7186
      */
7187
-    private static function extractNumber(string $data): int|float
7187
+    private static function extractNumber(string $data): int | float
7188 7188
     {
7189 7189
         $rknumhigh = self::getInt4d($data, 4);
7190 7190
         $rknumlow = self::getInt4d($data, 0);
@@ -7207,7 +7207,7 @@  discard block
 block discarded – undo
7207 7207
         return $value;
7208 7208
     }
7209 7209
 
7210
-    private static function getIEEE754(int $rknum): float|int
7210
+    private static function getIEEE754(int $rknum): float | int
7211 7211
     {
7212 7212
         if (($rknum & 0x02) != 0) {
7213 7213
             $value = $rknum >> 2;
@@ -7502,7 +7502,7 @@  discard block
 block discarded – undo
7502 7502
     {
7503 7503
     }*/
7504 7504
 
7505
-    private function readCFFormula(string $recordData, int $offset, int $size): float|int|string|null
7505
+    private function readCFFormula(string $recordData, int $offset, int $size): float | int | string | null
7506 7506
     {
7507 7507
         try {
7508 7508
             $formula = substr($recordData, $offset, $size);
@@ -7519,7 +7519,7 @@  discard block
 block discarded – undo
7519 7519
         }
7520 7520
     }
7521 7521
 
7522
-    private function setCFRules(array $cellRanges, string $type, string $operator, null|float|int|string $formula1, null|float|int|string $formula2, Style $style): void
7522
+    private function setCFRules(array $cellRanges, string $type, string $operator, null | float | int | string $formula1, null | float | int | string $formula2, Style $style): void
7523 7523
     {
7524 7524
         foreach ($cellRanges as $cellRange) {
7525 7525
             $conditional = new Conditional();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/IReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      *
89 89
      * @return $this
90 90
      */
91
-    public function setLoadSheetsOnly(string|array|null $value): self;
91
+    public function setLoadSheetsOnly(string | array | null $value): self;
92 92
 
93 93
     /**
94 94
      * Set all sheets to load
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/BaseReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
         return $this->loadSheetsOnly;
96 96
     }
97 97
 
98
-    public function setLoadSheetsOnly(string|array|null $sheetList): self
98
+    public function setLoadSheetsOnly(string | array | null $sheetList): self
99 99
     {
100 100
         if ($sheetList === null) {
101 101
             return $this->setLoadAllSheets();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xls/Escher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
     /**
88 88
      * Load Escher stream data. May be a partial Escher stream.
89 89
      */
90
-    public function load(string $data): BSE|BstoreContainer|DgContainer|DggContainer|\PhpOffice\PhpSpreadsheet\Shared\Escher|SpContainer|SpgrContainer
90
+    public function load(string $data): BSE | BstoreContainer | DgContainer | DggContainer | \PhpOffice\PhpSpreadsheet\Shared\Escher | SpContainer | SpgrContainer
91 91
     {
92 92
         $this->data = $data;
93 93
 
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
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * Map error code, e.g. '#N/A'.
19 19
      */
20
-    public static function lookup(int $code): string|bool
20
+    public static function lookup(int $code): string | bool
21 21
     {
22 22
         return self::ERROR_CODE_MAP[$code] ?? false;
23 23
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Html.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     /**
242 242
      * Flush cell.
243 243
      */
244
-    protected function flushCell(Worksheet $sheet, string $column, int|string $row, mixed &$cellContent, array $attributeArray): void
244
+    protected function flushCell(Worksheet $sheet, string $column, int | string $row, mixed &$cellContent, array $attributeArray): void
245 245
     {
246 246
         if (is_string($cellContent)) {
247 247
             //    Simple String content
@@ -821,7 +821,7 @@  discard block
 block discarded – undo
821 821
      * TODO :
822 822
      * - Implement to other propertie, such as border
823 823
      */
824
-    private function applyInlineStyle(Worksheet &$sheet, int $row, string $column, array $attributeArray): void
824
+    private function applyInlineStyle(Worksheet & $sheet, int $row, string $column, array $attributeArray): void
825 825
     {
826 826
         if (!isset($attributeArray['style'])) {
827 827
             return;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/ConvertUOM.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -615,7 +615,7 @@
 block discarded – undo
615 615
         throw new Exception('UoM Not Found');
616 616
     }
617 617
 
618
-    protected static function convertTemperature(string $fromUOM, string $toUOM, float|int $value): float|int
618
+    protected static function convertTemperature(string $fromUOM, string $toUOM, float | int $value): float | int
619 619
     {
620 620
         $fromUOM = self::resolveTemperatureSynonyms($fromUOM);
621 621
         $toUOM = self::resolveTemperatureSynonyms($toUOM);
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
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @return array|string If an array of numbers is passed as an argument, then the returned result will also be an array
29 29
      *            with the same dimensions
30 30
      */
31
-    public static function IMDIV(array|string $complexDividend, array|string $complexDivisor): array|string
31
+    public static function IMDIV(array | string $complexDividend, array | string $complexDivisor): array | string
32 32
     {
33 33
         if (is_array($complexDividend) || is_array($complexDivisor)) {
34 34
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $complexDividend, $complexDivisor);
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @return array|string If an array of numbers is passed as an argument, then the returned result will also be an array
58 58
      *            with the same dimensions
59 59
      */
60
-    public static function IMSUB(array|string $complexNumber1, array|string $complexNumber2): array|string
60
+    public static function IMSUB(array | string $complexNumber1, array | string $complexNumber2): array | string
61 61
     {
62 62
         if (is_array($complexNumber1) || is_array($complexNumber2)) {
63 63
             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   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      *
18 18
      * @return int[]
19 19
      */
20
-    private static function splitNumber(float|int $number): array
20
+    private static function splitNumber(float | int $number): array
21 21
     {
22 22
         return [(int) floor($number / self::SPLIT_DIVISOR), (int) fmod($number, self::SPLIT_DIVISOR)];
23 23
     }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @return array|int|string If an array of numbers is passed as an argument, then the returned result will also be an array
37 37
      *            with the same dimensions
38 38
      */
39
-    public static function BITAND(null|array|bool|float|int|string $number1, null|array|bool|float|int|string $number2): array|string|int
39
+    public static function BITAND(null | array | bool | float | int | string $number1, null | array | bool | float | int | string $number2): array | string | int
40 40
     {
41 41
         if (is_array($number1) || is_array($number2)) {
42 42
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number1, $number2);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @return array|int|string If an array of numbers is passed as an argument, then the returned result will also be an array
69 69
      *            with the same dimensions
70 70
      */
71
-    public static function BITOR(null|array|bool|float|int|string $number1, null|array|bool|float|int|string $number2): array|string|int
71
+    public static function BITOR(null | array | bool | float | int | string $number1, null | array | bool | float | int | string $number2): array | string | int
72 72
     {
73 73
         if (is_array($number1) || is_array($number2)) {
74 74
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number1, $number2);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      * @return array|int|string If an array of numbers is passed as an argument, then the returned result will also be an array
102 102
      *            with the same dimensions
103 103
      */
104
-    public static function BITXOR(null|array|bool|float|int|string $number1, null|array|bool|float|int|string $number2): array|string|int
104
+    public static function BITXOR(null | array | bool | float | int | string $number1, null | array | bool | float | int | string $number2): array | string | int
105 105
     {
106 106
         if (is_array($number1) || is_array($number2)) {
107 107
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number1, $number2);
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * @return array|float|string If an array of numbers is passed as an argument, then the returned result will also be an array
135 135
      *            with the same dimensions
136 136
      */
137
-    public static function BITLSHIFT(null|array|bool|float|int|string $number, null|array|bool|float|int|string $shiftAmount): array|string|float
137
+    public static function BITLSHIFT(null | array | bool | float | int | string $number, null | array | bool | float | int | string $shiftAmount): array | string | float
138 138
     {
139 139
         if (is_array($number) || is_array($shiftAmount)) {
140 140
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $shiftAmount);
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      * @return array|float|string If an array of numbers is passed as an argument, then the returned result will also be an array
170 170
      *            with the same dimensions
171 171
      */
172
-    public static function BITRSHIFT(null|array|bool|float|int|string $number, null|array|bool|float|int|string $shiftAmount): array|string|float
172
+    public static function BITRSHIFT(null | array | bool | float | int | string $number, null | array | bool | float | int | string $shiftAmount): array | string | float
173 173
     {
174 174
         if (is_array($number) || is_array($shiftAmount)) {
175 175
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $shiftAmount);
Please login to merge, or discard this patch.