From 8ddeab2b5c78fb55581b3e85533d66688d1c5cbe Mon Sep 17 00:00:00 2001 From: Brandon Ferens Date: Fri, 1 Jul 2022 08:53:49 -0700 Subject: [PATCH] List syntax rule This PR address the `list_syntax` rule. `list()` is not used anywhere in the Laravel code base while the shortened syntax is. Adding this rules not only enforces that syntax, but ensures other code bases that use Pint conform to that syntax. https://mlocati.github.io/php-cs-fixer-configurator/#version:3.8|fixer:list_syntax --- resources/presets/laravel.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/presets/laravel.php b/resources/presets/laravel.php index cb9dba28..ad98867f 100644 --- a/resources/presets/laravel.php +++ b/resources/presets/laravel.php @@ -57,6 +57,7 @@ 'lambda_not_used_import' => true, 'linebreak_after_opening_tag' => true, 'line_ending' => true, + 'list_syntax' => true, 'lowercase_cast' => true, 'lowercase_keywords' => true, 'lowercase_static_reference' => true,