From 5c1d0815254dcbe591c6d5c2e43e254c0b0e8a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 21 Jun 2019 19:11:46 +0200 Subject: [PATCH 1/2] Fix: Indentation --- .php_cs.dist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.php_cs.dist b/.php_cs.dist index 9bff4e5c..8a887147 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -8,7 +8,7 @@ $finder = PhpCsFixer\Finder::create() return PhpCsFixer\Config::create() ->setRules([ - '@Symfony' => true, - 'array_syntax' => ['syntax' => 'short'], + '@Symfony' => true, + 'array_syntax' => ['syntax' => 'short'], ]) ->setFinder($finder); From cdf68d6eaead3b8d6832e772b5f1fafc194fd411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 21 Jun 2019 19:13:53 +0200 Subject: [PATCH 2/2] Enhancement: Configure visibility_required fixer --- .php_cs.dist | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.php_cs.dist b/.php_cs.dist index 8a887147..8c7bcc22 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -10,5 +10,12 @@ return PhpCsFixer\Config::create() ->setRules([ '@Symfony' => true, 'array_syntax' => ['syntax' => 'short'], + 'visibility_required' => [ + 'elements' => [ + 'const', + 'method', + 'property', + ], + ], ]) ->setFinder($finder);