Passed
Pull Request — master (#3728)
by Adrien
38:46 queued 29:46
created
src/PhpSpreadsheet/Reader/Csv/Delimiter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
 
91 91
             $meanSquareDeviations[$delimiter] = array_reduce(
92 92
                 $series,
93
-                fn ($sum, $value): int|float => $sum + ($value - $median) ** 2
93
+                fn ($sum, $value): int | float => $sum + ($value - $median) ** 2
94 94
             ) / count($series);
95 95
         }
96 96
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/LookupRef/Address.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 an array of values is passed as the $testValue argument, then the returned result will also be
49 49
      *            an array with the same dimensions
50 50
      */
51
-    public static function cell(mixed $row, mixed $column, mixed $relativity = 1, mixed $referenceStyle = true, mixed $sheetName = ''): array|string
51
+    public static function cell(mixed $row, mixed $column, mixed $relativity = 1, mixed $referenceStyle = true, mixed $sheetName = ''): array | string
52 52
     {
53 53
         if (
54 54
             is_array($row) || is_array($column)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/HyperGeometric.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
31 31
      *            with the same dimensions
32 32
      */
33
-    public static function distribution(mixed $sampleSuccesses, mixed $sampleNumber, mixed $populationSuccesses, mixed $populationNumber): array|string|float
33
+    public static function distribution(mixed $sampleSuccesses, mixed $sampleNumber, mixed $populationSuccesses, mixed $populationNumber): array | string | float
34 34
     {
35 35
         if (
36 36
             is_array($sampleSuccesses) || is_array($sampleNumber)
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
@@ -2144,7 +2144,7 @@  discard block
 block discarded – undo
2144 2144
      * @param float $scale_x The horizontal scale
2145 2145
      * @param float $scale_y The vertical scale
2146 2146
      */
2147
-    public function insertBitmap($row, $col, GdImage|string $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1): void
2147
+    public function insertBitmap($row, $col, GdImage | string $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1): void
2148 2148
     {
2149 2149
         $bitmap_array = $bitmap instanceof GdImage
2150 2150
             ? $this->processBitmapGd($bitmap)
@@ -2286,7 +2286,7 @@  discard block
 block discarded – undo
2286 2286
      * @param int $rwB Row containing bottom right corner of object
2287 2287
      * @param int $dyB Distance from bottom of cell
2288 2288
      */
2289
-    private function writeObjPicture(int $colL, int $dxL, int $rwT, int|float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void
2289
+    private function writeObjPicture(int $colL, int $dxL, int $rwT, int | float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void
2290 2290
     {
2291 2291
         $record = 0x005D; // Record identifier
2292 2292
         $length = 0x003C; // Bytes to follow
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Trend/BestFit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -424,7 +424,7 @@
 block discarded – undo
424 424
     {
425 425
         return array_sum(
426 426
             array_map(
427
-                fn ($value): float|int => $value ** 2,
427
+                fn ($value): float | int => $value ** 2,
428 428
                 $values
429 429
             )
430 430
         );
Please login to merge, or discard this patch.