@@ -101,7 +101,7 @@ |
||
101 | 101 | true, // plotVisibleOnly |
102 | 102 | DataSeries::EMPTY_AS_GAP, // displayBlanksAs |
103 | 103 | null, // xAxisLabel |
104 | - null, // yAxisLabel |
|
104 | + null, // yAxisLabel |
|
105 | 105 | null, // xAxis |
106 | 106 | ); |
107 | 107 |
@@ -32,7 +32,7 @@ |
||
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 | ], |
@@ -13,7 +13,7 @@ |
||
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 |
@@ -148,7 +148,7 @@ discard block |
||
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 |
||
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; |
@@ -14,7 +14,7 @@ |
||
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(); |
@@ -41,7 +41,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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(); |
@@ -67,7 +67,7 @@ |
||
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. |
@@ -114,7 +114,7 @@ discard block |
||
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 |
||
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]; |
@@ -69,7 +69,7 @@ |
||
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) { |