Passed
Push — master ( dbed77...896806 )
by Adrien
12:38
created
samples/Pdf/Mpdf2.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         //    even though it uses camel-case fontDir.
33 33
         $fontdata = $defaultFontConfig['fontdata'];
34 34
         $fontFile = 'ShadowsIntoLight-Regular.ttf';
35
-        $config['fontdata'] = $fontdata + [ // lowercase letters only in font key
35
+        $config['fontdata'] = $fontdata + [// lowercase letters only in font key
36 36
             'shadowsintolight' => [
37 37
                 'R' => $fontFile,
38 38
             ],
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Writer/Xlsx/LocaleFloatsTest.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
 class LocaleFloatsTest extends AbstractFunctional
15 15
 {
16
-    private false|string $currentPhpLocale;
16
+    private false | string $currentPhpLocale;
17 17
 
18 18
     private string $originalLocale;
19 19
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/Axis.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         return $this->axisType === self::AXIS_TYPE_DATE || (bool) $this->axisNumber['numeric'];
149 149
     }
150 150
 
151
-    public function setAxisOption(string $key, null|float|int|string $value): void
151
+    public function setAxisOption(string $key, null | float | int | string $value): void
152 152
     {
153 153
         if ($value !== null && $value !== '') {
154 154
             $this->axisOptions[$key] = (string) $value;
@@ -165,16 +165,16 @@  discard block
 block discarded – undo
165 165
         ?string $axisOrientation = null,
166 166
         ?string $majorTmt = null,
167 167
         ?string $minorTmt = null,
168
-        null|float|int|string $minimum = null,
169
-        null|float|int|string $maximum = null,
170
-        null|float|int|string $majorUnit = null,
171
-        null|float|int|string $minorUnit = null,
172
-        null|float|int|string $textRotation = null,
168
+        null | float | int | string $minimum = null,
169
+        null | float | int | string $maximum = null,
170
+        null | float | int | string $majorUnit = null,
171
+        null | float | int | string $minorUnit = null,
172
+        null | float | int | string $textRotation = null,
173 173
         ?string $hidden = null,
174 174
         ?string $baseTimeUnit = null,
175 175
         ?string $majorTimeUnit = null,
176 176
         ?string $minorTimeUnit = null,
177
-        null|float|int|string $logBase = null,
177
+        null | float | int | string $logBase = null,
178 178
         ?string $dispUnitsBuiltIn = null
179 179
     ): void {
180 180
         $this->axisOptions['axis_labels'] = $axisLabels;
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/SequenceTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      * @param mixed[] $arguments
15 15
      * @param mixed[]|string $expectedResult
16 16
      */
17
-    public function testSEQUENCE(array $arguments, array|string $expectedResult): void
17
+    public function testSEQUENCE(array $arguments, array | string $expectedResult): void
18 18
     {
19 19
         if (count($arguments) === 0) {
20 20
             $result = MatrixFunctions::sequence();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Shared/Date2Test.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * @dataProvider providerTimeOnly
43 43
      */
44
-    public function testTimeOnly(int|float $expectedResult, int|float|string $value, ?string $format = null): void
44
+    public function testTimeOnly(int | float $expectedResult, int | float | string $value, ?string $format = null): void
45 45
     {
46 46
         Cell::setCalculateDateTimeType(Cell::CALCULATE_TIME_FLOAT);
47 47
         $this->spreadsheet = new Spreadsheet();
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * @dataProvider providerDateAndTime
88 88
      */
89
-    public function testDateAndTime(int|float $expectedResult, int|float|string $value, ?string $format = null): void
89
+    public function testDateAndTime(int | float $expectedResult, int | float | string $value, ?string $format = null): void
90 90
     {
91 91
         Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_FLOAT);
92 92
         $this->spreadsheet = new Spreadsheet();
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     /**
132 132
      * @dataProvider providerAsis
133 133
      */
134
-    public function testDefault(int|float $expectedResult, int|float|string $value, ?string $format = null): void
134
+    public function testDefault(int | float $expectedResult, int | float | string $value, ?string $format = null): void
135 135
     {
136 136
         //Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_ASIS);
137 137
         $this->spreadsheet = new Spreadsheet();
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     /**
154 154
      * @dataProvider providerAsis
155 155
      */
156
-    public function testAsis(int|float $expectedResult, int|float|string $value, ?string $format = null): void
156
+    public function testAsis(int | float $expectedResult, int | float | string $value, ?string $format = null): void
157 157
     {
158 158
         Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_ASIS);
159 159
         $this->spreadsheet = new Spreadsheet();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/Style.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      *
68 68
      * @var null|array<string, array>
69 69
      */
70
-    private static ?array $cachedStyles = null;
70
+    private static ? array $cachedStyles = null;
71 71
 
72 72
     /**
73 73
      * Create a new Style.
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/ConditionalFormatting/CellMatcher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         };
115 115
     }
116 116
 
117
-    protected function wrapValue(mixed $value): float|int|string
117
+    protected function wrapValue(mixed $value): float | int | string
118 118
     {
119 119
         if (!is_numeric($value)) {
120 120
             if (is_bool($value)) {
@@ -129,12 +129,12 @@  discard block
 block discarded – undo
129 129
         return $value;
130 130
     }
131 131
 
132
-    protected function wrapCellValue(): float|int|string
132
+    protected function wrapCellValue(): float | int | string
133 133
     {
134 134
         return $this->wrapValue($this->cell->getCalculatedValue());
135 135
     }
136 136
 
137
-    protected function conditionCellAdjustment(array $matches): float|int|string
137
+    protected function conditionCellAdjustment(array $matches): float | int | string
138 138
     {
139 139
         $column = $matches[6];
140 140
         $row = $matches[7];
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/ConditionalFormatting/Wizard/CellValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         $this->operandValueType[$index] = $operandValueType;
70 70
     }
71 71
 
72
-    protected function wrapValue(mixed $value, string $operandValueType): float|int|string
72
+    protected function wrapValue(mixed $value, string $operandValueType): float | int | string
73 73
     {
74 74
         if (!is_numeric($value) && !is_bool($value) && null !== $value) {
75 75
             if ($operandValueType === Wizard::VALUE_TYPE_LITERAL) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/Color.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@
 block discarded – undo
282 282
      *
283 283
      * @return int|string The extracted colour component
284 284
      */
285
-    private static function getColourComponent(string $rgbValue, int $offset, bool $hex = true): string|int
285
+    private static function getColourComponent(string $rgbValue, int $offset, bool $hex = true): string | int
286 286
     {
287 287
         $colour = substr($rgbValue, $offset, 2) ?: '';
288 288
         if (preg_match('/^[0-9a-f]{2}$/i', $colour) !== 1) {
Please login to merge, or discard this patch.