Passed
Pull Request — master (#3834)
by Shinji
21:30
created
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/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.