Failed Conditions
Pull Request — master (#3872)
by Adrien
12:52
created
src/PhpSpreadsheet/Helper/Dimension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      *                If this is a height, then size is measured in pixels ()
49 49
      *                   or in points () if $unit is null.
50 50
      */
51
-    protected float|int $size;
51
+    protected float | int $size;
52 52
 
53 53
     protected ?string $unit = null;
54 54
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/Worksheet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3100,7 +3100,7 @@
 block discarded – undo
3100 3100
      *
3101 3101
      * @return ($range is non-empty-string ? ($returnRange is true ? array{0: string, 1: string} : string) : ($returnRange is true ? array{0: null, 1: null} : null))
3102 3102
      */
3103
-    public static function extractSheetTitle(?string $range, bool $returnRange = false): array|null|string
3103
+    public static function extractSheetTitle(?string $range, bool $returnRange = false): array | null | string
3104 3104
     {
3105 3105
         if (empty($range)) {
3106 3106
             return $returnRange ? [null, null] : null;
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|int|string
255
+    public function getAttribute(string $name): null | 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/Worksheet/AutoFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     /**
72 72
      * Get AutoFilter Parent Worksheet.
73 73
      */
74
-    public function getParent(): null|Worksheet
74
+    public function getParent(): null | Worksheet
75 75
     {
76 76
         return $this->workSheet;
77 77
     }
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      *
234 234
      * @return $this
235 235
      */
236
-    public function setColumn(AutoFilter\Column|string $columnObjectOrString): static
236
+    public function setColumn(AutoFilter\Column | string $columnObjectOrString): static
237 237
     {
238 238
         $this->evaluated = false;
239 239
         if ((is_string($columnObjectOrString)) && (!empty($columnObjectOrString))) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/Table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -437,7 +437,7 @@
 block discarded – undo
437 437
      * @param string|Table\Column $columnObjectOrString
438 438
      *            A simple string containing a Column ID like 'A' is permitted
439 439
      */
440
-    public function setColumn(string|Table\Column $columnObjectOrString): self
440
+    public function setColumn(string | Table\Column $columnObjectOrString): self
441 441
     {
442 442
         if ((is_string($columnObjectOrString)) && (!empty($columnObjectOrString))) {
443 443
             $column = $columnObjectOrString;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Cell/DataType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      *
54 54
      * @return RichText|string Sanitized value
55 55
      */
56
-    public static function checkString(null|RichText|string $textValue): RichText|string
56
+    public static function checkString(null | RichText | string $textValue): RichText | string
57 57
     {
58 58
         if ($textValue instanceof RichText) {
59 59
             // TODO: Sanitize Rich-Text string (max. character count is 32,767)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Cell/Coordinate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      *
83 83
      * @return string Absolute coordinate        e.g. '$A' or '$1' or '$A$1'
84 84
      */
85
-    public static function absoluteReference(int|string $cellAddress): string
85
+    public static function absoluteReference(int | string $cellAddress): string
86 86
     {
87 87
         $cellAddress = (string) $cellAddress;
88 88
         if (self::coordinateIsRange($cellAddress)) {
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
      *
407 407
      * @param int|numeric-string $columnIndex Column index (A = 1)
408 408
      */
409
-    public static function stringFromColumnIndex(int|string $columnIndex): string
409
+    public static function stringFromColumnIndex(int | string $columnIndex): string
410 410
     {
411 411
         static $indexCache = [];
412 412
         static $lookupCache = ' ABCDEFGHIJKLMNOPQRSTUVWXYZ';
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Spreadsheet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
     /**
264 264
      * retrieve ribbon XML Data.
265 265
      */
266
-    public function getRibbonXMLData(string $what = 'all'): null|array|string //we need some constants here...
266
+    public function getRibbonXMLData(string $what = 'all'): null | array | string //we need some constants here...
267 267
     {
268 268
         $returnData = null;
269 269
         $what = strtolower($what);
@@ -1082,7 +1082,7 @@  discard block
 block discarded – undo
1082 1082
      *
1083 1083
      * @return false|Style
1084 1084
      */
1085
-    public function getCellXfByHashCode(string $hashcode): bool|Style
1085
+    public function getCellXfByHashCode(string $hashcode): bool | Style
1086 1086
     {
1087 1087
         foreach ($this->cellXfCollection as $cellXf) {
1088 1088
             if ($cellXf->getHashCode() === $hashcode) {
@@ -1185,7 +1185,7 @@  discard block
 block discarded – undo
1185 1185
      *
1186 1186
      * @return false|Style
1187 1187
      */
1188
-    public function getCellStyleXfByHashCode(string $hashcode): bool|Style
1188
+    public function getCellStyleXfByHashCode(string $hashcode): bool | Style
1189 1189
     {
1190 1190
         foreach ($this->cellStyleXfCollection as $cellStyleXf) {
1191 1191
             if ($cellStyleXf->getHashCode() === $hashcode) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Drawing.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      *
14 14
      * @return float|int Value in EMU
15 15
      */
16
-    public static function pixelsToEMU(int $pixelValue): int|float
16
+    public static function pixelsToEMU(int $pixelValue): int | float
17 17
     {
18 18
         return $pixelValue * 9525;
19 19
     }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      *
45 45
      * @return float|int Value in cell dimension
46 46
      */
47
-    public static function pixelsToCellDimension(int $pixelValue, \PhpOffice\PhpSpreadsheet\Style\Font $defaultFont): int|float
47
+    public static function pixelsToCellDimension(int $pixelValue, \PhpOffice\PhpSpreadsheet\Style\Font $defaultFont): int | float
48 48
     {
49 49
         // Font name and size
50 50
         $name = $defaultFont->getName();
Please login to merge, or discard this patch.