Skip to content

Commit a40cbd0

Browse files
dimtrovichgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 6f1c0fe commit a40cbd0

59 files changed

Lines changed: 156 additions & 149 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@
4444
'Blitz PHP framework',
4545
'Dimitri Sitchet Tomkeu',
4646
'devcode.dst@gmail.com',
47-
2022
47+
2022,
4848
);

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
->withCache(
6363
// Github action cache or local
6464
is_dir('/tmp') ? '/tmp/rector' : null,
65-
FileCacheStorage::class
65+
FileCacheStorage::class,
6666
)
6767
// paths to refactor; solid alternative to CLI arguments
6868
->withPaths([

src/Cli/Commands/Generators/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function prepare(string $class): string
9999
$class,
100100
['{group}', '{command}'],
101101
[$group, $command],
102-
['type' => $type]
102+
['type' => $type],
103103
);
104104
}
105105
}

src/Cli/Commands/Generators/Component.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function execute(array $params)
8181
$viewName = preg_replace(
8282
'/([a-z][a-z0-9_\/\\\\]+)(-component)$/i',
8383
'$1',
84-
$viewName
84+
$viewName,
8585
) ?? $viewName;
8686
$namespace = substr($className, 0, strrpos($className, '\\') + 1);
8787

src/Cli/Commands/Generators/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ protected function prepare(string $class): string
121121
[
122122
'type' => $rest,
123123
'invokable' => $this->option('invokable'),
124-
]
124+
],
125125
);
126126
}
127127
}

src/Cli/Commands/Generators/Middleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function prepare(string $class): string
8989
$class,
9090
[],
9191
[],
92-
['standard' => $standard]
92+
['standard' => $standard],
9393
);
9494
}
9595
}

src/Cli/Commands/Routes/AutoRouteCollector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(
2929
private readonly string $defaultMethod,
3030
private readonly array $httpMethods,
3131
private readonly array $protectedControllers,
32-
private readonly string $prefix = ''
32+
private readonly string $prefix = '',
3333
) {
3434
}
3535

@@ -53,7 +53,7 @@ public function get(): array
5353
$routes = $reader->read(
5454
$class,
5555
$this->defaultController,
56-
$this->defaultMethod
56+
$this->defaultMethod,
5757
);
5858

5959
if ($routes === []) {

src/Cli/Commands/Routes/ControllerMethodReader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function read(string $class, string $defaultController = 'Home', string $
6363
$classname,
6464
$methodName,
6565
$httpVerb,
66-
$method
66+
$method,
6767
);
6868

6969
if ($routeForDefaultController !== []) {
@@ -170,7 +170,7 @@ private function getRouteForDefaultController(
170170
string $classname,
171171
string $methodName,
172172
string $httpVerb,
173-
ReflectionMethod $method
173+
ReflectionMethod $method,
174174
): array {
175175
$output = [];
176176

src/Cli/Commands/Routes/Routes.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ protected function collectRoutes(RouteCollection $collection): array
136136
$collection->getDefaultController(),
137137
$collection->getDefaultMethod(),
138138
$methods,
139-
$collection->getRegisteredControllers('*')
139+
$collection->getRegisteredControllers('*'),
140140
);
141141

142142
$autoRoutes = $autoRouteCollector->get();
@@ -150,7 +150,7 @@ protected function collectRoutes(RouteCollection $collection): array
150150
$collection->getDefaultMethod(),
151151
$methods,
152152
$collection->getRegisteredControllers('*'),
153-
$uri
153+
$uri,
154154
);
155155

156156
$autoRoutes = [...$autoRoutes, ...$autoRouteCollector->get()];
@@ -340,8 +340,8 @@ protected function displayRoutes(array $routes, int $total): void
340340
$this->write(
341341
$this->color->line(
342342
sprintf('%s⇂ %s', str_repeat(' ', $maxMethodLength), $middleware),
343-
['fg' => Color::fg256(60)]
344-
)
343+
['fg' => Color::fg256(60)],
344+
),
345345
)->eol();
346346
}
347347
}
@@ -370,7 +370,7 @@ protected function displayStats(Collection $routes, int $total): void
370370
$this->justify(
371371
$method,
372372
(string) $routes->where('method', $method)->count(),
373-
$options
373+
$options,
374374
);
375375
}
376376
}

src/Cli/Commands/Server/rewrite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
}
2626

2727
$uri = urldecode(
28-
parse_url('https://blitz-php.com' . $_SERVER['REQUEST_URI'], PHP_URL_PATH) ?? ''
28+
parse_url('https://blitz-php.com' . $_SERVER['REQUEST_URI'], PHP_URL_PATH) ?? '',
2929
);
3030

3131
// Toutes les requêtes sont gérées par index.php fichier.

0 commit comments

Comments
 (0)