Passed
Push — master ( 11f0b5...d8ad4b )
by
unknown
12:16 queued 33s
created
tests/PhpSpreadsheetTests/Writer/Xlsx/LocaleFloatsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
 class LocaleFloatsTest extends AbstractFunctional
15 15
 {
16
-    private false|string $currentPhpLocale;
16
+    private false | string $currentPhpLocale;
17 17
 
18 18
     private string $originalLocale;
19 19
 
Please login to merge, or discard this patch.
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/Style.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      *
68 68
      * @var null|array<string, array>
69 69
      */
70
-    private static ?array $cachedStyles = null;
70
+    private static ? array $cachedStyles = null;
71 71
 
72 72
     /**
73 73
      * Create a new Style.
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/Style/NumberFormat/NumberFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@
 block discarded – undo
253 253
         return (string) $value;
254 254
     }
255 255
 
256
-    private static function makeString(array|string $value): string
256
+    private static function makeString(array | string $value): string
257 257
     {
258 258
         return is_array($value) ? '' : "$value";
259 259
     }
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/Title.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      *
19 19
      * @var array<RichText|string>|RichText|string
20 20
      */
21
-    private array|RichText|string $caption;
21
+    private array | RichText | string $caption;
22 22
 
23 23
     /**
24 24
      * Allow overlay of other elements?
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * Create a new Title.
39 39
      */
40
-    public function __construct(array|RichText|string $caption = '', ?Layout $layout = null, bool $overlay = false)
40
+    public function __construct(array | RichText | string $caption = '', ?Layout $layout = null, bool $overlay = false)
41 41
     {
42 42
         $this->caption = $caption;
43 43
         $this->layout = $layout;
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * Get caption.
49 49
      */
50
-    public function getCaption(): array|RichText|string
50
+    public function getCaption(): array | RichText | string
51 51
     {
52 52
         return $this->caption;
53 53
     }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * @return $this
88 88
      */
89
-    public function setCaption(array|RichText|string $caption): static
89
+    public function setCaption(array | RichText | string $caption): static
90 90
     {
91 91
         $this->caption = $caption;
92 92
 
Please login to merge, or discard this patch.