Skip to content

Commit

Permalink
fix: Add missing use and add rule for trailing comma on multiline par…
Browse files Browse the repository at this point in the history
…ameters

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Sep 18, 2024
1 parent caae821 commit 7266f84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Nextcloud\CodingStandard;

use PhpCsFixer\Config as Base;
use PhpCsFixerCustomFixers;

class Config extends Base {
public function __construct($name = 'default') {
Expand Down Expand Up @@ -68,6 +69,7 @@ public function getRules() : array {
'single_line_after_imports' => true,
'single_quote' => ['strings_containing_single_quote_chars' => false],
'switch_case_space' => true,
'trailing_comma_in_multiline' => ['elements' => ['parameters']],
'types_spaces' => ['space' => 'none', 'space_multiple_catch' => 'none'],
'visibility_required' => [
'elements' => ['property', 'method', 'const']
Expand Down

0 comments on commit 7266f84

Please sign in to comment.