Passed
Pull Request — master (#3793)
by Adrien
12:22
created
Category
tests/PhpSpreadsheetTests/Calculation/Functions/Database/DCountATest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     /**
11 11
      * @dataProvider providerDCountA
12 12
      */
13
-    public function testDirectCallToDCountA(int|string $expectedResult, array $database, string $field, array $criteria): void
13
+    public function testDirectCallToDCountA(int | string $expectedResult, array $database, string $field, array $criteria): void
14 14
     {
15 15
         $result = DCountA::evaluate($database, $field, $criteria);
16 16
         self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12);
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     /**
20 20
      * @dataProvider providerDCountA
21 21
      */
22
-    public function testDCountAAsWorksheetFormula(int|string $expectedResult, array $database, string $field, array $criteria): void
22
+    public function testDCountAAsWorksheetFormula(int | string $expectedResult, array $database, string $field, array $criteria): void
23 23
     {
24 24
         $this->prepareWorksheetWithFormula('DCOUNTA', $database, $field, $criteria);
25 25
 
Please login to merge, or discard this patch.
Calculation/Functions/Database/SetupTeardownDatabases.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
         return $this->sheet;
133 133
     }
134 134
 
135
-    public function prepareWorksheetWithFormula(string $functionName, array $database, null|int|string $field, array $criteria): void
135
+    public function prepareWorksheetWithFormula(string $functionName, array $database, null | int | string $field, array $criteria): void
136 136
     {
137 137
         $sheet = $this->getSheet();
138 138
         $maxCol = '';
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Database/DMaxTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     /**
11 11
      * @dataProvider providerDMax
12 12
      */
13
-    public function testDirectCallToDMax(int|string $expectedResult, array $database, string|null|int $field, array $criteria): void
13
+    public function testDirectCallToDMax(int | string $expectedResult, array $database, string | null | int $field, array $criteria): void
14 14
     {
15 15
         $result = DMax::evaluate($database, $field, $criteria);
16 16
         self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12);
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     /**
20 20
      * @dataProvider providerDMax
21 21
      */
22
-    public function testDMaxAsWorksheetFormula(int|string $expectedResult, array $database, string|null|int $field, array $criteria): void
22
+    public function testDMaxAsWorksheetFormula(int | string $expectedResult, array $database, string | null | int $field, array $criteria): void
23 23
     {
24 24
         $this->prepareWorksheetWithFormula('DMAX', $database, $field, $criteria);
25 25
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Database/DVarTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     /**
11 11
      * @dataProvider providerDVar
12 12
      */
13
-    public function testDirectCallToDVar(float|string $expectedResult, array $database, ?string $field, array $criteria): void
13
+    public function testDirectCallToDVar(float | string $expectedResult, array $database, ?string $field, array $criteria): void
14 14
     {
15 15
         $result = DVar::evaluate($database, $field, $criteria);
16 16
         self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12);
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     /**
20 20
      * @dataProvider providerDVar
21 21
      */
22
-    public function testDVarAsWorksheetFormula(float|string $expectedResult, array $database, ?string $field, array $criteria): void
22
+    public function testDVarAsWorksheetFormula(float | string $expectedResult, array $database, ?string $field, array $criteria): void
23 23
     {
24 24
         $this->prepareWorksheetWithFormula('DVAR', $database, $field, $criteria);
25 25
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/LookupRef/RowTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     /**
10 10
      * @dataProvider providerROW
11 11
      */
12
-    public function testROW(mixed $expectedResult, null|array|string $cellReference = null): void
12
+    public function testROW(mixed $expectedResult, null | array | string $cellReference = null): void
13 13
     {
14 14
         $result = LookupRef\RowColumnInformation::ROW($cellReference);
15 15
         self::assertSame($expectedResult, $result);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/LookupRef/OffsetTest.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 providerOFFSET
12 12
      */
13
-    public function testOFFSET(mixed $expectedResult, null|string $cellReference = null): void
13
+    public function testOFFSET(mixed $expectedResult, null | string $cellReference = null): void
14 14
     {
15 15
         $result = LookupRef\Offset::OFFSET($cellReference);
16 16
         self::assertSame($expectedResult, $result);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/LookupRef/ColumnsTest.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 providerCOLUMNS
13 13
      */
14
-    public function testCOLUMNS(mixed $expectedResult, null|array|string $arg): void
14
+    public function testCOLUMNS(mixed $expectedResult, null | array | string $arg): void
15 15
     {
16 16
         $result = LookupRef\RowColumnInformation::COLUMNS($arg);
17 17
         self::assertEquals($expectedResult, $result);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/LookupRef/IndirectTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
     /**
134 134
      * @dataProvider providerRelative
135 135
      */
136
-    public function testR1C1Relative(string|int|null $expectedResult, string $address): void
136
+    public function testR1C1Relative(string | int | null $expectedResult, string $address): void
137 137
     {
138 138
         $sheet = $this->getSheet();
139 139
         $sheet->fromArray([
Please login to merge, or discard this patch.
Calculation/Functions/LookupRef/IndexOnSpreadsheetTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     /**
8 8
      * @dataProvider providerINDEXonSpreadsheet
9 9
      */
10
-    public function testIndexOnSpreadsheet(mixed $expectedResult, array $matrix, null|int|string $rowNum = null, null|int|string $colNum = null): void
10
+    public function testIndexOnSpreadsheet(mixed $expectedResult, array $matrix, null | int | string $rowNum = null, null | int | string $colNum = null): void
11 11
     {
12 12
         $this->mightHaveException($expectedResult);
13 13
         $sheet = $this->getSheet();
Please login to merge, or discard this patch.