Skip to content

Commit 160b0f6

Browse files
committed
Apply to parameters
1 parent 231b6b0 commit 160b0f6

Some content is hidden

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

64 files changed

+94
-87
lines changed

.php-cs-fixer.dist.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@
4040
]);
4141

4242
$overrides = [
43-
'get_class_to_class_keyword' => true,
43+
'get_class_to_class_keyword' => true,
44+
'trailing_comma_in_multiline' => [
45+
'after_heredoc' => true,
46+
'elements' => [
47+
'arrays',
48+
'parameters',
49+
],
50+
],
4451
];
4552

4653
$options = [

system/CLI/GeneratorTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ protected function parseTemplate(
370370
string $class,
371371
array $search = [],
372372
array $replace = [],
373-
array $data = []
373+
array $data = [],
374374
): string {
375375
// Retrieves the namespace part from the fully qualified class name.
376376
$namespace = trim(

system/Commands/Database/ShowTableInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ private function makeTableRows(
272272
string $tableName,
273273
int $limitRows,
274274
int $limitFieldValue,
275-
?string $sortField = null
275+
?string $sortField = null,
276276
): array {
277277
$this->tbody = [];
278278

system/Commands/Utilities/Routes/AutoRouterImproved/AutoRouteCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(
3636
private readonly string $defaultMethod,
3737
private readonly array $httpMethods,
3838
private readonly array $protectedControllers,
39-
private readonly string $prefix = ''
39+
private readonly string $prefix = '',
4040
) {
4141
}
4242

system/Commands/Utilities/Routes/AutoRouterImproved/ControllerMethodReader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class ControllerMethodReader
3333
*/
3434
public function __construct(
3535
private readonly string $namespace,
36-
private readonly array $httpMethods
36+
private readonly array $httpMethods,
3737
) {
3838
$config = config(Routing::class);
3939
$this->translateURIDashes = $config->translateURIDashes;
@@ -214,7 +214,7 @@ private function getRouteForDefaultController(
214214
string $classname,
215215
string $methodName,
216216
string $httpVerb,
217-
ReflectionMethod $method
217+
ReflectionMethod $method,
218218
): array {
219219
$output = [];
220220

system/Commands/Utilities/Routes/ControllerFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class ControllerFinder
2828
* @param string $namespace namespace to search
2929
*/
3030
public function __construct(
31-
private readonly string $namespace
31+
private readonly string $namespace,
3232
) {
3333
$this->locator = service('locator');
3434
}

system/Commands/Utilities/Routes/ControllerMethodReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private function getRouteWithoutController(
153153
string $defaultController,
154154
string $uriByClass,
155155
string $classname,
156-
string $methodName
156+
string $methodName,
157157
): array {
158158
if ($classShortname !== $defaultController) {
159159
return [];

system/Commands/Utilities/Routes/FilterCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(
3232
*
3333
* If set to true, route filters are not found.
3434
*/
35-
private readonly bool $resetRoutes = false
35+
private readonly bool $resetRoutes = false,
3636
) {
3737
}
3838

system/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ function esc($data, string $context = 'html', ?string $encoding = null)
470470
function force_https(
471471
int $duration = 31_536_000,
472472
?RequestInterface $request = null,
473-
?ResponseInterface $response = null
473+
?ResponseInterface $response = null,
474474
): void {
475475
$request ??= service('request');
476476

system/Config/Services.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public static function encrypter(?EncryptionConfig $config = null, $getShared =
267267
*/
268268
public static function exceptions(
269269
?ExceptionsConfig $config = null,
270-
bool $getShared = true
270+
bool $getShared = true,
271271
) {
272272
if ($getShared) {
273273
return static::getSharedInstance('exceptions', $config);
@@ -721,7 +721,7 @@ public static function session(?SessionConfig $config = null, bool $getShared =
721721
public static function siteurifactory(
722722
?App $config = null,
723723
?Superglobals $superglobals = null,
724-
bool $getShared = true
724+
bool $getShared = true,
725725
) {
726726
if ($getShared) {
727727
return static::getSharedInstance('siteurifactory', $config, $superglobals);
@@ -741,7 +741,7 @@ public static function siteurifactory(
741741
public static function superglobals(
742742
?array $server = null,
743743
?array $get = null,
744-
bool $getShared = true
744+
bool $getShared = true,
745745
) {
746746
if ($getShared) {
747747
return static::getSharedInstance('superglobals', $server, $get);

0 commit comments

Comments
 (0)