Failed Conditions
Pull Request — master (#3693)
by Franck
13:36
created
src/PhpSpreadsheet/Calculation/DateTimeExcel/Days360.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      *         If an array of values is passed for the $startDate or $endDays,arguments, then the returned result
45 45
      *            will also be an array with matching dimensions
46 46
      */
47
-    public static function between($startDate = 0, $endDate = 0, $method = false): array|string|int
47
+    public static function between($startDate = 0, $endDate = 0, $method = false): array | string | int
48 48
     {
49 49
         if (is_array($startDate) || is_array($endDate) || is_array($method)) {
50 50
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $startDate, $endDate, $method);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Database/DCountA.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      *                                        the column label in which you specify a condition for the
31 31
      *                                        column.
32 32
      */
33
-    public static function evaluate($database, $field, $criteria): string|int
33
+    public static function evaluate($database, $field, $criteria): string | int
34 34
     {
35 35
         $field = self::fieldExtract($database, $field);
36 36
         if ($field === null) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Database/DCount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      *                                        the column label in which you specify a condition for the
32 32
      *                                        column.
33 33
      */
34
-    public static function evaluate($database, $field, $criteria, bool $returnError = true): string|int
34
+    public static function evaluate($database, $field, $criteria, bool $returnError = true): string | int
35 35
     {
36 36
         $field = self::fieldExtract($database, $field);
37 37
         if ($returnError && $field === null) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/ConvertDecimal.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
46 46
      *            with the same dimensions
47 47
      */
48
-    public static function toBinary($value, $places = null): array|string
48
+    public static function toBinary($value, $places = null): array | string
49 49
     {
50 50
         if (is_array($value) || is_array($places)) {
51 51
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
103 103
      *            with the same dimensions
104 104
      */
105
-    public static function toHex($value, $places = null): array|string
105
+    public static function toHex($value, $places = null): array | string
106 106
     {
107 107
         if (is_array($value) || is_array($places)) {
108 108
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
179 179
      *            with the same dimensions
180 180
      */
181
-    public static function toOctal($value, $places = null): array|string
181
+    public static function toOctal($value, $places = null): array | string
182 182
     {
183 183
         if (is_array($value) || is_array($places)) {
184 184
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/Color.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@
 block discarded – undo
289 289
      *
290 290
      * @return int|string The extracted colour component
291 291
      */
292
-    private static function getColourComponent($rgbValue, $offset, $hex = true): string|int
292
+    private static function getColourComponent($rgbValue, $offset, $hex = true): string | int
293 293
     {
294 294
         $colour = substr($rgbValue, $offset, 2) ?: '';
295 295
         if (preg_match('/^[0-9a-f]{2}$/i', $colour) !== 1) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/PlotArea.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
      *
74 74
      * @return int
75 75
      */
76
-    public function getPlotSeriesCount(): int|float
76
+    public function getPlotSeriesCount(): int | float
77 77
     {
78 78
         $seriesCount = 0;
79 79
         foreach ($this->plotSeries as $plot) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/DataSeriesValues.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -316,7 +316,7 @@
 block discarded – undo
316 316
      *
317 317
      * @return string|string[] HEX color or array with HEX colors
318 318
      */
319
-    public function getFillColor(): string|array
319
+    public function getFillColor(): string | array
320 320
     {
321 321
         if ($this->fillColor === null) {
322 322
             return '';
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xlsx/Chart.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $this->aNamespace = $aNamespace;
35 35
     }
36 36
 
37
-    private static function getAttributeString(SimpleXMLElement $component, string $name): string|null
37
+    private static function getAttributeString(SimpleXMLElement $component, string $name): string | null
38 38
     {
39 39
         $attributes = $component->attributes();
40 40
         if (@isset($attributes[$name])) {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         return null;
45 45
     }
46 46
 
47
-    private static function getAttributeInteger(SimpleXMLElement $component, string $name): int|null
47
+    private static function getAttributeInteger(SimpleXMLElement $component, string $name): int | null
48 48
     {
49 49
         $attributes = $component->attributes();
50 50
         if (@isset($attributes[$name])) {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         return null;
55 55
     }
56 56
 
57
-    private static function getAttributeBoolean(SimpleXMLElement $component, string $name): bool|null
57
+    private static function getAttributeBoolean(SimpleXMLElement $component, string $name): bool | null
58 58
     {
59 59
         $attributes = $component->attributes();
60 60
         if (@isset($attributes[$name])) {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         return null;
67 67
     }
68 68
 
69
-    private static function getAttributeFloat(SimpleXMLElement $component, string $name): float|null
69
+    private static function getAttributeFloat(SimpleXMLElement $component, string $name): float | null
70 70
     {
71 71
         $attributes = $component->attributes();
72 72
         if (@isset($attributes[$name])) {
Please login to merge, or discard this patch.
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.