Skip to content

Commit

Permalink
feat: improve php-cs rules with PSR-12 and `trailing_comma_in_multili…
Browse files Browse the repository at this point in the history
…ne` (#27)

Co-authored-by: Anthony Tenneriello <atenneriello.externe@bedrockstreaming.com>
  • Loading branch information
antten and Anthony Tenneriello committed Aug 21, 2024
1 parent 8ffa630 commit a8a4473
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BedrockStreaming.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function __construct()
public function getRules(): array
{
$rules = [
'@PSR12' => true,
'@Symfony' => true,
'array_syntax' => [
'syntax' => 'short',
Expand All @@ -41,6 +42,7 @@ public function getRules(): array
'phpdoc_summary' => false,
'single_line_throw' => false,
'yoda_style' => false,
'trailing_comma_in_multiline' => ['elements' => ['arguments', 'arrays', 'match', 'parameters']],
];

return $rules;
Expand Down

0 comments on commit a8a4473

Please sign in to comment.