Passed
Push — master ( 3e93d4...2d1f4e )
by
unknown
24:41 queued 16:58
created
src/PhpSpreadsheet/Chart/Axis.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         return $this->axisType === self::AXIS_TYPE_DATE || (bool) $this->axisNumber['numeric'];
149 149
     }
150 150
 
151
-    public function setAxisOption(string $key, null|float|int|string $value): void
151
+    public function setAxisOption(string $key, null | float | int | string $value): void
152 152
     {
153 153
         if ($value !== null && $value !== '') {
154 154
             $this->axisOptions[$key] = (string) $value;
@@ -165,16 +165,16 @@  discard block
 block discarded – undo
165 165
         ?string $axisOrientation = null,
166 166
         ?string $majorTmt = null,
167 167
         ?string $minorTmt = null,
168
-        null|float|int|string $minimum = null,
169
-        null|float|int|string $maximum = null,
170
-        null|float|int|string $majorUnit = null,
171
-        null|float|int|string $minorUnit = null,
172
-        null|float|int|string $textRotation = null,
168
+        null | float | int | string $minimum = null,
169
+        null | float | int | string $maximum = null,
170
+        null | float | int | string $majorUnit = null,
171
+        null | float | int | string $minorUnit = null,
172
+        null | float | int | string $textRotation = null,
173 173
         ?string $hidden = null,
174 174
         ?string $baseTimeUnit = null,
175 175
         ?string $majorTimeUnit = null,
176 176
         ?string $minorTimeUnit = null,
177
-        null|float|int|string $logBase = null,
177
+        null | float | int | string $logBase = null,
178 178
         ?string $dispUnitsBuiltIn = null
179 179
     ): void {
180 180
         $this->axisOptions['axis_labels'] = $axisLabels;
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
@@ -282,7 +282,7 @@
 block discarded – undo
282 282
      *
283 283
      * @return int|string The extracted colour component
284 284
      */
285
-    private static function getColourComponent(string $rgbValue, int $offset, bool $hex = true): string|int
285
+    private static function getColourComponent(string $rgbValue, int $offset, bool $hex = true): string | int
286 286
     {
287 287
         $colour = substr($rgbValue, $offset, 2) ?: '';
288 288
         if (preg_match('/^[0-9a-f]{2}$/i', $colour) !== 1) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/Supervisor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      *
44 44
      * @return $this
45 45
      */
46
-    public function bindParent(Spreadsheet|self $parent, ?string $parentPropertyName = null)
46
+    public function bindParent(Spreadsheet | self $parent, ?string $parentPropertyName = null)
47 47
     {
48 48
         $this->parent = $parent;
49 49
         $this->parentPropertyName = $parentPropertyName;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/Border.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
      *
147 147
      * @return $this
148 148
      */
149
-    public function setBorderStyle(bool|string $style): static
149
+    public function setBorderStyle(bool | string $style): static
150 150
     {
151 151
         if (empty($style)) {
152 152
             $style = self::BORDER_NONE;
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
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     /**
66 66
      * Get Number of Plot Series.
67 67
      */
68
-    public function getPlotSeriesCount(): int|float
68
+    public function getPlotSeriesCount(): int | float
69 69
     {
70 70
         $seriesCount = 0;
71 71
         foreach ($this->plotSeries as $plot) {
Please login to merge, or discard this patch.
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.