Passed
Pull Request — master (#3718)
by Adrien
21:40 queued 10:12
created
Category
tests/PhpSpreadsheetTests/Shared/Date2Test.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @param float|int $value
44 44
      */
45
-    public function testTimeOnly(int|float $expectedResult, int|float|string $value, ?string $format = null): void
45
+    public function testTimeOnly(int | float $expectedResult, int | float | string $value, ?string $format = null): void
46 46
     {
47 47
         Cell::setCalculateDateTimeType(Cell::CALCULATE_TIME_FLOAT);
48 48
         $this->spreadsheet = new Spreadsheet();
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     /**
88 88
      * @dataProvider providerDateAndTime
89 89
      */
90
-    public function testDateAndTime(int|float $expectedResult, int|float|string $value, ?string $format = null): void
90
+    public function testDateAndTime(int | float $expectedResult, int | float | string $value, ?string $format = null): void
91 91
     {
92 92
         Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_FLOAT);
93 93
         $this->spreadsheet = new Spreadsheet();
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     /**
133 133
      * @dataProvider providerAsis
134 134
      */
135
-    public function testDefault(int|float $expectedResult, int|float|string $value, ?string $format = null): void
135
+    public function testDefault(int | float $expectedResult, int | float | string $value, ?string $format = null): void
136 136
     {
137 137
         //Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_ASIS);
138 138
         $this->spreadsheet = new Spreadsheet();
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     /**
155 155
      * @dataProvider providerAsis
156 156
      */
157
-    public function testAsis(int|float $expectedResult, int|float|string $value, ?string $format = null): void
157
+    public function testAsis(int | float $expectedResult, int | float | string $value, ?string $format = null): void
158 158
     {
159 159
         Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_ASIS);
160 160
         $this->spreadsheet = new Spreadsheet();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/HashTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
     /**
111 111
      * Get index for hash code.
112 112
      */
113
-    public function getIndexForHashCode(string $hashCode): false|int
113
+    public function getIndexForHashCode(string $hashCode): false | int
114 114
     {
115 115
         // Scrutinizer thinks the following could return string. It is wrong.
116 116
         return array_search($hashCode, $this->keyMap, true);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/Legend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
     /**
108 108
      * Get legend position as an Excel internal numeric value.
109 109
      */
110
-    public function getPositionXL(): false|int
110
+    public function getPositionXL(): false | int
111 111
     {
112 112
         // Scrutinizer thinks the following could return string. It is wrong.
113 113
         return array_search($this->position, self::POSITION_XLREF);
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
@@ -2180,7 +2180,7 @@  discard block
 block discarded – undo
2180 2180
      * @param float $scale_x The horizontal scale
2181 2181
      * @param float $scale_y The vertical scale
2182 2182
      */
2183
-    public function insertBitmap($row, $col, GdImage|string $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1): void
2183
+    public function insertBitmap($row, $col, GdImage | string $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1): void
2184 2184
     {
2185 2185
         $bitmap_array = $bitmap instanceof GdImage
2186 2186
             ? $this->processBitmapGd($bitmap)
@@ -2322,7 +2322,7 @@  discard block
 block discarded – undo
2322 2322
      * @param int $rwB Row containing bottom right corner of object
2323 2323
      * @param int $dyB Distance from bottom of cell
2324 2324
      */
2325
-    private function writeObjPicture(int $colL, int $dxL, int $rwT, int|float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void
2325
+    private function writeObjPicture(int $colL, int $dxL, int $rwT, int | float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void
2326 2326
     {
2327 2327
         $record = 0x005d; // Record identifier
2328 2328
         $length = 0x003c; // Bytes to follow
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/MemoryDrawing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     /**
30 30
      * Image resource.
31 31
      */
32
-    private null|GdImage $imageResource = null;
32
+    private null | GdImage $imageResource = null;
33 33
 
34 34
     /**
35 35
      * Rendering function.
Please login to merge, or discard this patch.