Passed
Pull Request — master (#4468)
by Owen
21:21 queued 14:00
created
samples/Chart33b/33_Chart_create_scatter5_trendlines.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     true, // plotVisibleOnly
156 156
     DataSeries::EMPTY_AS_GAP, // displayBlanksAs
157 157
     null, // xAxisLabel
158
-    $yAxisLabel,  // yAxisLabel
158
+    $yAxisLabel, // yAxisLabel
159 159
     // added xAxis for correct date display
160 160
     $xAxis, // xAxis
161 161
     //  $yAxis, // yAxis
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
     true, // plotVisibleOnly
252 252
     DataSeries::EMPTY_AS_GAP, // displayBlanksAs
253 253
     null, // xAxisLabel
254
-    $yAxisLabel,  // yAxisLabel
254
+    $yAxisLabel, // yAxisLabel
255 255
     // added xAxis for correct date display
256 256
     $xAxis, // xAxis
257 257
     //  $yAxis, // yAxis
Please login to merge, or discard this patch.
samples/Chart33b/33_Chart_create_scatter3.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
 
130 130
 $yAxis = new ChartAxis();
131 131
 $yAxis->setLineStyleProperties(
132
-    2.5,     // width in points
132
+    2.5, // width in points
133 133
     Properties::LINE_STYLE_COMPOUND_SIMPLE,
134 134
     Properties::LINE_STYLE_DASH_DASH_DOT,
135 135
     Properties::LINE_STYLE_CAP_FLAT,
Please login to merge, or discard this patch.
samples/Chart33b/33_Chart_create_scatter2.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
 $yAxis = new ChartAxis();
130 130
 $yAxis->setLineStyleProperties(
131
-    2.5,     // width in points
131
+    2.5, // width in points
132 132
     Properties::LINE_STYLE_COMPOUND_SIMPLE,
133 133
     Properties::LINE_STYLE_DASH_DASH_DOT,
134 134
     Properties::LINE_STYLE_CAP_FLAT,
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     true, // plotVisibleOnly
167 167
     DataSeries::EMPTY_AS_GAP, // displayBlanksAs
168 168
     null, // xAxisLabel
169
-    $yAxisLabel,  // yAxisLabel
169
+    $yAxisLabel, // yAxisLabel
170 170
     // added xAxis for correct date display
171 171
     $xAxis, // xAxis
172 172
     $yAxis, // yAxis
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Document/Properties.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * Created.
38 38
      */
39
-    private float|int $created;
39
+    private float | int $created;
40 40
 
41 41
     /**
42 42
      * Modified.
43 43
      */
44
-    private float|int $modified;
44
+    private float | int $modified;
45 45
 
46 46
     /**
47 47
      * Title.
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         return $this;
141 141
     }
142 142
 
143
-    private static function intOrFloatTimestamp(null|bool|float|int|string $timestamp): float|int
143
+    private static function intOrFloatTimestamp(null | bool | float | int | string $timestamp): float | int
144 144
     {
145 145
         if ($timestamp === null || is_bool($timestamp)) {
146 146
             $timestamp = (float) (new DateTime())->format('U');
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     /**
162 162
      * Get Created.
163 163
      */
164
-    public function getCreated(): float|int
164
+    public function getCreated(): float | int
165 165
     {
166 166
         return $this->created;
167 167
     }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      *
172 172
      * @return $this
173 173
      */
174
-    public function setCreated(null|float|int|string $timestamp): self
174
+    public function setCreated(null | float | int | string $timestamp): self
175 175
     {
176 176
         $this->created = self::intOrFloatTimestamp($timestamp);
177 177
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     /**
182 182
      * Get Modified.
183 183
      */
184
-    public function getModified(): float|int
184
+    public function getModified(): float | int
185 185
     {
186 186
         return $this->modified;
187 187
     }
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      *
192 192
      * @return $this
193 193
      */
194
-    public function setModified(null|float|int|string $timestamp): self
194
+    public function setModified(null | float | int | string $timestamp): self
195 195
     {
196 196
         $this->modified = self::intOrFloatTimestamp($timestamp);
197 197
 
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
     /**
360 360
      * Get a Custom Property Value.
361 361
      */
362
-    public function getCustomPropertyValue(string $propertyName): bool|int|float|string|null
362
+    public function getCustomPropertyValue(string $propertyName): bool | int | float | string | null
363 363
     {
364 364
         if (isset($this->customProperties[$propertyName])) {
365 365
             return $this->customProperties[$propertyName]['value'];
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
         return $this->customProperties[$propertyName]['type'] ?? null;
377 377
     }
378 378
 
379
-    private function identifyPropertyType(bool|int|float|string|null $propertyValue): string
379
+    private function identifyPropertyType(bool | int | float | string | null $propertyValue): string
380 380
     {
381 381
         if (is_float($propertyValue)) {
382 382
             return self::PROPERTY_TYPE_FLOAT;
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
      *
399 399
      * @return $this
400 400
      */
401
-    public function setCustomProperty(string $propertyName, bool|int|float|string|null $propertyValue = '', ?string $propertyType = null): self
401
+    public function setCustomProperty(string $propertyName, bool | int | float | string | null $propertyValue = '', ?string $propertyType = null): self
402 402
     {
403 403
         if (($propertyType === null) || (!in_array($propertyType, self::VALID_PROPERTY_TYPE_LIST))) {
404 404
             $propertyType = $this->identifyPropertyType($propertyValue);
@@ -413,32 +413,32 @@  discard block
 block discarded – undo
413 413
     }
414 414
 
415 415
     private const PROPERTY_TYPE_ARRAY = [
416
-        'i' => self::PROPERTY_TYPE_INTEGER,      //    Integer
417
-        'i1' => self::PROPERTY_TYPE_INTEGER,     //    1-Byte Signed Integer
418
-        'i2' => self::PROPERTY_TYPE_INTEGER,     //    2-Byte Signed Integer
419
-        'i4' => self::PROPERTY_TYPE_INTEGER,     //    4-Byte Signed Integer
420
-        'i8' => self::PROPERTY_TYPE_INTEGER,     //    8-Byte Signed Integer
421
-        'int' => self::PROPERTY_TYPE_INTEGER,    //    Integer
422
-        'ui1' => self::PROPERTY_TYPE_INTEGER,    //    1-Byte Unsigned Integer
423
-        'ui2' => self::PROPERTY_TYPE_INTEGER,    //    2-Byte Unsigned Integer
424
-        'ui4' => self::PROPERTY_TYPE_INTEGER,    //    4-Byte Unsigned Integer
425
-        'ui8' => self::PROPERTY_TYPE_INTEGER,    //    8-Byte Unsigned Integer
426
-        'uint' => self::PROPERTY_TYPE_INTEGER,   //    Unsigned Integer
427
-        'f' => self::PROPERTY_TYPE_FLOAT,        //    Real Number
428
-        'r4' => self::PROPERTY_TYPE_FLOAT,       //    4-Byte Real Number
429
-        'r8' => self::PROPERTY_TYPE_FLOAT,       //    8-Byte Real Number
430
-        'decimal' => self::PROPERTY_TYPE_FLOAT,  //    Decimal
431
-        's' => self::PROPERTY_TYPE_STRING,       //    String
432
-        'empty' => self::PROPERTY_TYPE_STRING,   //    Empty
433
-        'null' => self::PROPERTY_TYPE_STRING,    //    Null
434
-        'lpstr' => self::PROPERTY_TYPE_STRING,   //    LPSTR
435
-        'lpwstr' => self::PROPERTY_TYPE_STRING,  //    LPWSTR
436
-        'bstr' => self::PROPERTY_TYPE_STRING,    //    Basic String
437
-        'd' => self::PROPERTY_TYPE_DATE,         //    Date and Time
438
-        'date' => self::PROPERTY_TYPE_DATE,      //    Date and Time
439
-        'filetime' => self::PROPERTY_TYPE_DATE,  //    File Time
440
-        'b' => self::PROPERTY_TYPE_BOOLEAN,      //    Boolean
441
-        'bool' => self::PROPERTY_TYPE_BOOLEAN,   //    Boolean
416
+        'i' => self::PROPERTY_TYPE_INTEGER, //    Integer
417
+        'i1' => self::PROPERTY_TYPE_INTEGER, //    1-Byte Signed Integer
418
+        'i2' => self::PROPERTY_TYPE_INTEGER, //    2-Byte Signed Integer
419
+        'i4' => self::PROPERTY_TYPE_INTEGER, //    4-Byte Signed Integer
420
+        'i8' => self::PROPERTY_TYPE_INTEGER, //    8-Byte Signed Integer
421
+        'int' => self::PROPERTY_TYPE_INTEGER, //    Integer
422
+        'ui1' => self::PROPERTY_TYPE_INTEGER, //    1-Byte Unsigned Integer
423
+        'ui2' => self::PROPERTY_TYPE_INTEGER, //    2-Byte Unsigned Integer
424
+        'ui4' => self::PROPERTY_TYPE_INTEGER, //    4-Byte Unsigned Integer
425
+        'ui8' => self::PROPERTY_TYPE_INTEGER, //    8-Byte Unsigned Integer
426
+        'uint' => self::PROPERTY_TYPE_INTEGER, //    Unsigned Integer
427
+        'f' => self::PROPERTY_TYPE_FLOAT, //    Real Number
428
+        'r4' => self::PROPERTY_TYPE_FLOAT, //    4-Byte Real Number
429
+        'r8' => self::PROPERTY_TYPE_FLOAT, //    8-Byte Real Number
430
+        'decimal' => self::PROPERTY_TYPE_FLOAT, //    Decimal
431
+        's' => self::PROPERTY_TYPE_STRING, //    String
432
+        'empty' => self::PROPERTY_TYPE_STRING, //    Empty
433
+        'null' => self::PROPERTY_TYPE_STRING, //    Null
434
+        'lpstr' => self::PROPERTY_TYPE_STRING, //    LPSTR
435
+        'lpwstr' => self::PROPERTY_TYPE_STRING, //    LPWSTR
436
+        'bstr' => self::PROPERTY_TYPE_STRING, //    Basic String
437
+        'd' => self::PROPERTY_TYPE_DATE, //    Date and Time
438
+        'date' => self::PROPERTY_TYPE_DATE, //    Date and Time
439
+        'filetime' => self::PROPERTY_TYPE_DATE, //    File Time
440
+        'b' => self::PROPERTY_TYPE_BOOLEAN, //    Boolean
441
+        'bool' => self::PROPERTY_TYPE_BOOLEAN, //    Boolean
442 442
     ];
443 443
 
444 444
     private const SPECIAL_TYPES = [
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
     /**
450 450
      * Convert property to form desired by Excel.
451 451
      */
452
-    public static function convertProperty(bool|int|float|string|null $propertyValue, string $propertyType): bool|int|float|string|null
452
+    public static function convertProperty(bool | int | float | string | null $propertyValue, string $propertyType): bool | int | float | string | null
453 453
     {
454 454
         return self::SPECIAL_TYPES[$propertyType] ?? self::convertProperty2($propertyValue, $propertyType);
455 455
     }
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
     /**
458 458
      * Convert property to form desired by Excel.
459 459
      */
460
-    private static function convertProperty2(bool|int|float|string|null $propertyValue, string $type): bool|int|float|string|null
460
+    private static function convertProperty2(bool | int | float | string | null $propertyValue, string $type): bool | int | float | string | null
461 461
     {
462 462
         $propertyType = self::convertPropertyType($type);
463 463
         switch ($propertyType) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/TimeValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
37 37
      *            with the same dimensions
38 38
      */
39
-    public static function fromString(null|array|string|int|bool|float $timeValue): array|string|Datetime|int|float
39
+    public static function fromString(null | array | string | int | bool | float $timeValue): array | string | Datetime | int | float
40 40
     {
41 41
         if (is_array($timeValue)) {
42 42
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/NumberFormat/Wizard/DateTime.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $this->formatBlocks = array_map([$this, 'mapFormatBlocks'], $formatBlocks);
29 29
     }
30 30
 
31
-    private function mapFormatBlocks(DateTimeWizard|string $value): string
31
+    private function mapFormatBlocks(DateTimeWizard | string $value): string
32 32
     {
33 33
         // Any date masking codes are returned as lower case values
34 34
         if ($value instanceof DateTimeWizard) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/AutoFilter/Column.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@
 block discarded – undo
252 252
      *
253 253
      * @param string $name Attribute Name
254 254
      */
255
-    public function getAttribute(string $name): null|float|int|string
255
+    public function getAttribute(string $name): null | float | int | string
256 256
     {
257 257
         if (isset($this->attributes[$name])) {
258 258
             return $this->attributes[$name];
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/ConditionalFormatting/Wizard/CellValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     }
71 71
 
72 72
     /** @param null|bool|float|int|string $value value to be wrapped */
73
-    protected function wrapValue(mixed $value, string $operandValueType): float|int|string
73
+    protected function wrapValue(mixed $value, string $operandValueType): float | int | string
74 74
     {
75 75
         if (!is_numeric($value) && !is_bool($value) && null !== $value) {
76 76
             if ($operandValueType === Wizard::VALUE_TYPE_LITERAL) {
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Worksheet/Table/TableTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
     /**
159 159
      * @param AddressRange<CellAddress>|array{0: int, 1: int, 2: int, 3: int}|array{0: int, 1: int}|string $fullRange
160 160
      */
161
-    public function xtestSetRangeValidRange(string|array|AddressRange $fullRange, string $actualRange): void
161
+    public function xtestSetRangeValidRange(string | array | AddressRange $fullRange, string $actualRange): void
162 162
     {
163 163
         $table = new Table(self::INITIAL_RANGE);
164 164
 
Please login to merge, or discard this patch.