Passed
Push — master ( 3e93d4...2d1f4e )
by
unknown
24:41 queued 16:58
created
src/PhpSpreadsheet/Calculation/Database/DCount.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
      *                                        the column label in which you specify a condition for the
32 32
      *                                        column.
33 33
      */
34
-    public static function evaluate(array $database, array|null|int|string $field, array $criteria, bool $returnError = true): string|int
34
+    public static function evaluate(array $database, array | null | int | string $field, array $criteria, bool $returnError = true): string | int
35 35
     {
36 36
         $field = self::fieldExtract($database, $field);
37 37
         if ($returnError && $field === null) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Database/DMax.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
      *                                        the column label in which you specify a condition for the
32 32
      *                                        column.
33 33
      */
34
-    public static function evaluate(array $database, array|null|int|string $field, array $criteria, bool $returnError = true): null|float|string
34
+    public static function evaluate(array $database, array | null | int | string $field, array $criteria, bool $returnError = true): null | float | string
35 35
     {
36 36
         $field = self::fieldExtract($database, $field);
37 37
         if ($field === null) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1325,7 +1325,7 @@  discard block
 block discarded – undo
1325 1325
         $objWriter->endElement();
1326 1326
     }
1327 1327
 
1328
-    private function writeCellInlineStr(XMLWriter $objWriter, string $mappedType, RichText|string $cellValue): void
1328
+    private function writeCellInlineStr(XMLWriter $objWriter, string $mappedType, RichText | string $cellValue): void
1329 1329
     {
1330 1330
         $objWriter->writeAttribute('t', $mappedType);
1331 1331
         if (!$cellValue instanceof RichText) {
@@ -1345,7 +1345,7 @@  discard block
 block discarded – undo
1345 1345
     /**
1346 1346
      * @param string[] $flippedStringTable
1347 1347
      */
1348
-    private function writeCellString(XMLWriter $objWriter, string $mappedType, RichText|string $cellValue, array $flippedStringTable): void
1348
+    private function writeCellString(XMLWriter $objWriter, string $mappedType, RichText | string $cellValue, array $flippedStringTable): void
1349 1349
     {
1350 1350
         $objWriter->writeAttribute('t', $mappedType);
1351 1351
         if (!$cellValue instanceof RichText) {
@@ -1355,7 +1355,7 @@  discard block
 block discarded – undo
1355 1355
         }
1356 1356
     }
1357 1357
 
1358
-    private function writeCellNumeric(XMLWriter $objWriter, float|int $cellValue): void
1358
+    private function writeCellNumeric(XMLWriter $objWriter, float | int $cellValue): void
1359 1359
     {
1360 1360
         //force a decimal to be written if the type is float
1361 1361
         if (is_float($cellValue)) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xls/Worksheet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2116,7 +2116,7 @@  discard block
 block discarded – undo
2116 2116
      * @param float $scale_x The horizontal scale
2117 2117
      * @param float $scale_y The vertical scale
2118 2118
      */
2119
-    public function insertBitmap(int $row, int $col, GdImage|string $bitmap, int $x = 0, int $y = 0, float $scale_x = 1, float $scale_y = 1): void
2119
+    public function insertBitmap(int $row, int $col, GdImage | string $bitmap, int $x = 0, int $y = 0, float $scale_x = 1, float $scale_y = 1): void
2120 2120
     {
2121 2121
         $bitmap_array = $bitmap instanceof GdImage
2122 2122
             ? $this->processBitmapGd($bitmap)
@@ -2258,7 +2258,7 @@  discard block
 block discarded – undo
2258 2258
      * @param int $rwB Row containing bottom right corner of object
2259 2259
      * @param int $dyB Distance from bottom of cell
2260 2260
      */
2261
-    private function writeObjPicture(int $colL, int $dxL, int $rwT, int|float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void
2261
+    private function writeObjPicture(int $colL, int $dxL, int $rwT, int | float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void
2262 2262
     {
2263 2263
         $record = 0x005D; // Record identifier
2264 2264
         $length = 0x003C; // Bytes to follow
Please login to merge, or discard this patch.
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/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/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.
src/PhpSpreadsheet/Shared/Xls.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      *
104 104
      * @return int Horizontal measured in pixels
105 105
      */
106
-    public static function getDistanceX(Worksheet $worksheet, string $startColumn = 'A', float|int $startOffsetX = 0, string $endColumn = 'A', float|int $endOffsetX = 0): int
106
+    public static function getDistanceX(Worksheet $worksheet, string $startColumn = 'A', float | int $startOffsetX = 0, string $endColumn = 'A', float | int $endOffsetX = 0): int
107 107
     {
108 108
         $distanceX = 0;
109 109
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      *
135 135
      * @return int Vertical distance measured in pixels
136 136
      */
137
-    public static function getDistanceY(Worksheet $worksheet, int $startRow = 1, float|int $startOffsetY = 0, int $endRow = 1, float|int $endOffsetY = 0): int
137
+    public static function getDistanceY(Worksheet $worksheet, int $startRow = 1, float | int $startOffsetY = 0, int $endRow = 1, float | int $endOffsetY = 0): int
138 138
     {
139 139
         $distanceY = 0;
140 140
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Escher/DgContainer/SpgrContainer/SpContainer.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -44,12 +44,12 @@  discard block
 block discarded – undo
44 44
     /**
45 45
      * Horizontal offset of upper-left corner of shape measured in 1/1024 of column width.
46 46
      */
47
-    private int|float $startOffsetX;
47
+    private int | float $startOffsetX;
48 48
 
49 49
     /**
50 50
      * Vertical offset of upper-left corner of shape measured in 1/256 of row height.
51 51
      */
52
-    private int|float $startOffsetY;
52
+    private int | float $startOffsetY;
53 53
 
54 54
     /**
55 55
      * Cell coordinates of bottom-right corner of shape, e.g. 'B2'.
@@ -59,12 +59,12 @@  discard block
 block discarded – undo
59 59
     /**
60 60
      * Horizontal offset of bottom-right corner of shape measured in 1/1024 of column width.
61 61
      */
62
-    private int|float $endOffsetX;
62
+    private int | float $endOffsetX;
63 63
 
64 64
     /**
65 65
      * Vertical offset of bottom-right corner of shape measured in 1/256 of row height.
66 66
      */
67
-    private int|float $endOffsetY;
67
+    private int | float $endOffsetY;
68 68
 
69 69
     /**
70 70
      * Set parent Shape Group Container.
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     /**
200 200
      * Set offset in x-direction of upper-left corner of shape measured in 1/1024 of column width.
201 201
      */
202
-    public function setStartOffsetX(int|float $startOffsetX): void
202
+    public function setStartOffsetX(int | float $startOffsetX): void
203 203
     {
204 204
         $this->startOffsetX = $startOffsetX;
205 205
     }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     /**
208 208
      * Get offset in x-direction of upper-left corner of shape measured in 1/1024 of column width.
209 209
      */
210
-    public function getStartOffsetX(): int|float
210
+    public function getStartOffsetX(): int | float
211 211
     {
212 212
         return $this->startOffsetX;
213 213
     }
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     /**
216 216
      * Set offset in y-direction of upper-left corner of shape measured in 1/256 of row height.
217 217
      */
218
-    public function setStartOffsetY(int|float $startOffsetY): void
218
+    public function setStartOffsetY(int | float $startOffsetY): void
219 219
     {
220 220
         $this->startOffsetY = $startOffsetY;
221 221
     }
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     /**
224 224
      * Get offset in y-direction of upper-left corner of shape measured in 1/256 of row height.
225 225
      */
226
-    public function getStartOffsetY(): int|float
226
+    public function getStartOffsetY(): int | float
227 227
     {
228 228
         return $this->startOffsetY;
229 229
     }
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
     /**
250 250
      * Set offset in x-direction of bottom-right corner of shape measured in 1/1024 of column width.
251 251
      */
252
-    public function setEndOffsetX(int|float $endOffsetX): void
252
+    public function setEndOffsetX(int | float $endOffsetX): void
253 253
     {
254 254
         $this->endOffsetX = $endOffsetX;
255 255
     }
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     /**
258 258
      * Get offset in x-direction of bottom-right corner of shape measured in 1/1024 of column width.
259 259
      */
260
-    public function getEndOffsetX(): int|float
260
+    public function getEndOffsetX(): int | float
261 261
     {
262 262
         return $this->endOffsetX;
263 263
     }
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
     /**
266 266
      * Set offset in y-direction of bottom-right corner of shape measured in 1/256 of row height.
267 267
      */
268
-    public function setEndOffsetY(int|float $endOffsetY): void
268
+    public function setEndOffsetY(int | float $endOffsetY): void
269 269
     {
270 270
         $this->endOffsetY = $endOffsetY;
271 271
     }
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
     /**
274 274
      * Get offset in y-direction of bottom-right corner of shape measured in 1/256 of row height.
275 275
      */
276
-    public function getEndOffsetY(): int|float
276
+    public function getEndOffsetY(): int | float
277 277
     {
278 278
         return $this->endOffsetY;
279 279
     }
Please login to merge, or discard this patch.