Passed
Pull Request — master (#4483)
by Owen
14:38
created
src/PhpSpreadsheet/Chart/ChartColor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         return $this;
82 82
     }
83 83
 
84
-    public function setColorProperties(?string $color, null|float|int|string $alpha = null, ?string $type = null, null|float|int|string $brightness = null): self
84
+    public function setColorProperties(?string $color, null | float | int | string $alpha = null, ?string $type = null, null | float | int | string $brightness = null): self
85 85
     {
86 86
         if (empty($type) && !empty($color)) {
87 87
             if (str_starts_with($color, '*')) {
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     /**
133 133
      * Get Color Property.
134 134
      */
135
-    public function getColorProperty(string $propertyName): null|int|string
135
+    public function getColorProperty(string $propertyName): null | int | string
136 136
     {
137 137
         $retVal = null;
138 138
         if ($propertyName === 'value') {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         return (string) (100 - $alpha) . '000';
154 154
     }
155 155
 
156
-    public static function alphaFromXml(float|int|string $alpha): int
156
+    public static function alphaFromXml(float | int | string $alpha): int
157 157
     {
158 158
         return 100 - ((int) $alpha / 1000);
159 159
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/Layout.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
     /**
233 233
      * Get X-Position.
234 234
      */
235
-    public function getXPosition(): null|float|int
235
+    public function getXPosition(): null | float | int
236 236
     {
237 237
         return $this->xPos;
238 238
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xlsx/Styles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@
 block discarded – undo
276 276
     /**
277 277
      * Read style.
278 278
      */
279
-    public function readStyle(Style $docStyle, SimpleXMLElement|stdClass $style): void
279
+    public function readStyle(Style $docStyle, SimpleXMLElement | stdClass $style): void
280 280
     {
281 281
         if ($style instanceof SimpleXMLElement) {
282 282
             $this->readNumberFormat($docStyle->getNumberFormat(), $style->numFmt);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xlsx/AutoFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
 
12 12
 class AutoFilter
13 13
 {
14
-    private Table|Worksheet $parent;
14
+    private Table | Worksheet $parent;
15 15
 
16 16
     private SimpleXMLElement $worksheetXml;
17 17
 
18
-    public function __construct(Table|Worksheet $parent, SimpleXMLElement $worksheetXml)
18
+    public function __construct(Table | Worksheet $parent, SimpleXMLElement $worksheetXml)
19 19
     {
20 20
         $this->parent = $parent;
21 21
         $this->worksheetXml = $worksheetXml;
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/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/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/ErfC.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     /**
48 48
      * Method to calculate the erfc value.
49 49
      */
50
-    private static function erfcValue(float|int|string $value): float|int
50
+    private static function erfcValue(float | int | string $value): float | int
51 51
     {
52 52
         $value = (float) $value;
53 53
         if (abs($value) < 2.2) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/Days.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
      *         If an array of values is passed for the $startDate or $endDays,arguments, then the returned result
32 32
      *            will also be an array with matching dimensions
33 33
      */
34
-    public static function between(array|DateTimeInterface|float|int|string $endDate, array|DateTimeInterface|float|int|string $startDate): array|int|string
34
+    public static function between(array | DateTimeInterface | float | int | string $endDate, array | DateTimeInterface | float | int | string $startDate): array | int | string
35 35
     {
36 36
         if (is_array($endDate) || is_array($startDate)) {
37 37
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $endDate, $startDate);
Please login to merge, or discard this patch.