Skip to content

Commit f72ca7a

Browse files
committed
fix rector
1 parent b816783 commit f72ca7a

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

docs/configuration.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ public $js = [
2020
'jquery-3.7.1.min.js', 'bootstrap-3.3.7.min.js', 'main.js',
2121
]
2222
];
23-
```
2423

25-
or
24+
// or / and
2625

27-
```php
2826
public $css = [
2927
'all.min.css' => [
3028
'bootstrap-3.3.7.min.css', 'font-awesome-4.7.0.min.css', 'main.css',

src/Minifier.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ protected function getVersion(string $dir): array
259259
*/
260260
protected function setVersion(string $mode, array $files, string $dir): void
261261
{
262-
$dir = rtrim($dir, '/');
262+
$versions = [];
263+
$dir = rtrim($dir, '/');
263264

264265
if (file_exists($dir . '/versions.json')) {
265266
$versions = json_decode(file_get_contents($dir . '/versions.json'), true);

tests/_support/CLITestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function removeColorCodes(string $output): string
3434
{
3535
$colors = $this->getPrivateProperty(CLI::class, 'foreground_colors');
3636
$colors = array_values(array_map(static fn ($color) => "\033[" . $color . 'm', $colors));
37-
$colors = array_merge(["\033[0m"], $colors);
37+
$colors = ["\033[0m", ...$colors];
3838

3939
$output = str_replace($colors, '', trim($output));
4040

0 commit comments

Comments
 (0)