Failed Conditions
Pull Request — master (#3876)
by Abdul Malik
17:26 queued 02:15
created
tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/DateDifTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     /**
20 20
      * @dataProvider providerDATEDIF
21 21
      */
22
-    public function testDirectCallToDATEDIF(array|int|string $expectedResult, string ...$args): void
22
+    public function testDirectCallToDATEDIF(array | int | string $expectedResult, string ...$args): void
23 23
     {
24 24
         $result = Difference::interval(...$args);
25 25
         self::assertSame($expectedResult, $result);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Engine/RangeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     /**
28 28
      * @dataProvider providerRangeEvaluation
29 29
      */
30
-    public function testRangeEvaluation(string $formula, int|string $expectedResult): void
30
+    public function testRangeEvaluation(string $formula, int | string $expectedResult): void
31 31
     {
32 32
         $workSheet = $this->spreadSheet->getActiveSheet();
33 33
         $workSheet->setCellValue('H1', $formula);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Reader/Xls/ErrorCodeMapTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     /**
11 11
      * @dataProvider errorCodeMapProvider
12 12
      */
13
-    public function testErrorCode(bool|string $expected, int $index): void
13
+    public function testErrorCode(bool | string $expected, int $index): void
14 14
     {
15 15
         self::assertSame($expected, ErrorCode::lookup($index));
16 16
     }
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Reader/Csv/CsvNumberFormatTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     /**
28 28
      * @dataProvider providerNumberFormatNoConversionTest
29 29
      */
30
-    public function testNumberFormatNoConversion(int|string $expectedValue, string $expectedFormat, string $cellAddress): void
30
+    public function testNumberFormatNoConversion(int | string $expectedValue, string $expectedFormat, string $cellAddress): void
31 31
     {
32 32
         $spreadsheet = $this->csvReader->load($this->filename);
33 33
         $worksheet = $spreadsheet->getActiveSheet();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Reader/Csv/CsvIssue2232Test.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
     /**
31 31
      * @dataProvider providerIssue2232
32 32
      */
33
-    public function testBooleanConversions(bool $useStringBinder, ?bool $preserveBoolString, bool|string $b2Value, bool|string $b3Value): void
33
+    public function testBooleanConversions(bool $useStringBinder, ?bool $preserveBoolString, bool | string $b2Value, bool | string $b3Value): void
34 34
     {
35 35
         if ($useStringBinder) {
36 36
             $binder = new StringValueBinder();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Reader/Csv/CsvTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     /**
12 12
      * @dataProvider providerDelimiterDetection
13 13
      */
14
-    public function testDelimiterDetection(string $filename, string $expectedDelimiter, string $cell, string|float|int|null $expectedValue): void
14
+    public function testDelimiterDetection(string $filename, string $expectedDelimiter, string $cell, string | float | int | null $expectedValue): void
15 15
     {
16 16
         $reader = new Csv();
17 17
         $delim1 = $reader->getDelimiter();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Writer/Xlsx/FloatsRetainedTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     /**
14 14
      * @dataProvider providerIntyFloatsRetainedByWriter
15 15
      */
16
-    public function testIntyFloatsRetainedByWriter(float|int $value): void
16
+    public function testIntyFloatsRetainedByWriter(float | int $value): void
17 17
     {
18 18
         $outputFilename = File::temporaryFilename();
19 19
         $spreadsheet = new Spreadsheet();
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.
tests/data/Calculation/LookupRef/LOOKUP.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 declare(strict_types=1);
4 4
 
5 5
 return [
6
-    [ // Office reference example #1
6
+    [// Office reference example #1
7 7
         'orange',
8 8
         4.19,
9 9
         [
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
             ['blue'],
22 22
         ],
23 23
     ],
24
-    [ // Office reference example #2
24
+    [// Office reference example #2
25 25
         'yellow',
26 26
         5.75,
27 27
         [
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             ['blue'],
40 40
         ],
41 41
     ],
42
-    [ // Office reference example #3
42
+    [// Office reference example #3
43 43
         'blue',
44 44
         7.66,
45 45
         [
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             ['blue'],
58 58
         ],
59 59
     ],
60
-    [ // Office reference example #4
60
+    [// Office reference example #4
61 61
         '#N/A',
62 62
         0,
63 63
         [
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             ['blue'],
76 76
         ],
77 77
     ],
78
-    [ // Array form test
78
+    [// Array form test
79 79
         'orange',
80 80
         4.2,
81 81
         [
Please login to merge, or discard this patch.