From 5e1ee09cd6cd2bdeb2c9bfa850fc0ca18fc936b2 Mon Sep 17 00:00:00 2001 From: Maurizio Date: Thu, 23 Sep 2021 12:15:14 +0200 Subject: [PATCH] refactor: update php-cs config for operator alignment and avoid trait blank lines (#10) --- .php-cs-fixer.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 455d855..f02e527 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -9,7 +9,10 @@ 'array_syntax' => ['syntax' => 'short'], 'binary_operator_spaces' => [ 'default' => 'single_space', - 'operators' => ['=>' => null], + 'operators' => [ + '=' => 'align', + '=>' => 'align', + ], ], 'blank_line_after_namespace' => true, 'blank_line_after_opening_tag' => true, @@ -71,6 +74,7 @@ 'extra', 'throw', 'use', + 'use_trait', ], ], 'no_leading_import_slash' => true,