From 7266f847ae894311db0e5e23f28aaae5da8045a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Wed, 18 Sep 2024 12:43:49 +0200 Subject: [PATCH] fix: Add missing use and add rule for trailing comma on multiline parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- src/Config.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Config.php b/src/Config.php index b41ba3a..f4db60b 100644 --- a/src/Config.php +++ b/src/Config.php @@ -5,6 +5,7 @@ namespace Nextcloud\CodingStandard; use PhpCsFixer\Config as Base; +use PhpCsFixerCustomFixers; class Config extends Base { public function __construct($name = 'default') { @@ -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']