Failed Conditions
Pull Request — master (#3743)
by Adrien
11:55
created
src/PhpSpreadsheet/Writer/Xlsx.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -705,7 +705,7 @@
 block discarded – undo
705 705
         }
706 706
     }
707 707
 
708
-    private function processDrawing(WorksheetDrawing $drawing): string|null|false
708
+    private function processDrawing(WorksheetDrawing $drawing): string | null | false
709 709
     {
710 710
         $data = null;
711 711
         $filename = $drawing->getPath();
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
@@ -3473,7 +3473,7 @@
 block discarded – undo
3473 3473
      *
3474 3474
      * @return ($range is non-empty-string ? ($returnRange is true ? array{0: string, 1: string} : string) : ($returnRange is true ? array{0: null, 1: null} : null))
3475 3475
      */
3476
-    public static function extractSheetTitle($range, $returnRange = false): array|null|string
3476
+    public static function extractSheetTitle($range, $returnRange = false): array | null | string
3477 3477
     {
3478 3478
         if (empty($range)) {
3479 3479
             return $returnRange ? [null, null] : null;
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($textValue): RichText|string|array
56
+    public static function checkString($textValue): RichText | string | array
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
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      *
16 16
      * @return int Value in EMU
17 17
      */
18
-    public static function pixelsToEMU($pixelValue): int|float
18
+    public static function pixelsToEMU($pixelValue): int | float
19 19
     {
20 20
         return $pixelValue * 9525;
21 21
     }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @return float|int Value in cell dimension
48 48
      */
49
-    public static function pixelsToCellDimension($pixelValue, \PhpOffice\PhpSpreadsheet\Style\Font $defaultFont): int|float
49
+    public static function pixelsToCellDimension($pixelValue, \PhpOffice\PhpSpreadsheet\Style\Font $defaultFont): int | float
50 50
     {
51 51
         // Font name and size
52 52
         $name = $defaultFont->getName();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Font.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
      *
540 540
      * @return int Size (in pixels)
541 541
      */
542
-    public static function inchSizeToPixels($sizeInInch): int|float
542
+    public static function inchSizeToPixels($sizeInInch): int | float
543 543
     {
544 544
         return $sizeInInch * 96;
545 545
     }
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
      *
653 653
      * @return ($returnAsPixels is true ? int : float) Column width
654 654
      */
655
-    public static function getDefaultColumnWidthByFont(FontStyle $font, bool $returnAsPixels = false): float|int
655
+    public static function getDefaultColumnWidthByFont(FontStyle $font, bool $returnAsPixels = false): float | int
656 656
     {
657 657
         if (isset(self::DEFAULT_COLUMN_WIDTHS[$font->getName()][$font->getSize()])) {
658 658
             // Exact width can be determined
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/OLE/ChainedBlockStream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
      *
118 118
      * @return false|string
119 119
      */
120
-    public function stream_read($count): bool|string // @codingStandardsIgnoreLine
120
+    public function stream_read($count): bool | string // @codingStandardsIgnoreLine
121 121
     {
122 122
         if ($this->stream_eof()) {
123 123
             return false;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Date.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
      *
313 313
      * @return false|float MS Excel serialized date/time value
314 314
      */
315
-    public static function timestampToExcel($unixTimestamp): bool|float
315
+    public static function timestampToExcel($unixTimestamp): bool | float
316 316
     {
317 317
         if (!is_numeric($unixTimestamp)) {
318 318
             return false;
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
      *
477 477
      * @return false|float Excel date/time serial value
478 478
      */
479
-    public static function stringToExcel($dateValue): bool|float
479
+    public static function stringToExcel($dateValue): bool | float
480 480
     {
481 481
         if (strlen($dateValue) < 2) {
482 482
             return false;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Trend/PolynomialBestFit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      *
65 65
      * @return float X-Value
66 66
      */
67
-    public function getValueOfXForY($yValue): int|float
67
+    public function getValueOfXForY($yValue): int | float
68 68
     {
69 69
         return ($yValue - $this->getIntersect()) / $this->getSlope();
70 70
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Trend/LinearBestFit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      *
20 20
      * @return float Y-Value
21 21
      */
22
-    public function getValueOfYForX($xValue): int|float
22
+    public function getValueOfYForX($xValue): int | float
23 23
     {
24 24
         return $this->getIntersect() + $this->getSlope() * $xValue;
25 25
     }
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @return float X-Value
33 33
      */
34
-    public function getValueOfXForY($yValue): int|float
34
+    public function getValueOfXForY($yValue): int | float
35 35
     {
36 36
         return ($yValue - $this->getIntersect()) / $this->getSlope();
37 37
     }
Please login to merge, or discard this patch.