Skip to content

Commit a8a4473

Browse files
anttenAnthony Tenneriello
and
Anthony Tenneriello
authored
feat: improve php-cs rules with PSR-12 and trailing_comma_in_multiline (#27)
Co-authored-by: Anthony Tenneriello <[email protected]>
1 parent 8ffa630 commit a8a4473

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/BedrockStreaming.php

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function __construct()
1818
public function getRules(): array
1919
{
2020
$rules = [
21+
'@PSR12' => true,
2122
'@Symfony' => true,
2223
'array_syntax' => [
2324
'syntax' => 'short',
@@ -41,6 +42,7 @@ public function getRules(): array
4142
'phpdoc_summary' => false,
4243
'single_line_throw' => false,
4344
'yoda_style' => false,
45+
'trailing_comma_in_multiline' => ['elements' => ['arguments', 'arrays', 'match', 'parameters']],
4446
];
4547

4648
return $rules;

0 commit comments

Comments
 (0)