From 9728674534d181b4f610e23236505af3127c819f Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Fri, 16 Mar 2018 10:13:51 +0100 Subject: [PATCH] Minor - update code style --- .php_cs.dist | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.php_cs.dist b/.php_cs.dist index 38fc3dada3..c5e872669e 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -4,24 +4,29 @@ $header = '/* For licensing terms, see /license.txt */'; $rules = [ '@Symfony' => true, - '@Symfony:risky' => true, + //'@Symfony:risky' => true, 'array_syntax' => [ 'syntax' => 'short', ], - 'header_comment' => [ + /*'header_comment' => [ 'header' => $header, - ], + ],*/ + 'blank_line_after_opening_tag' => false, 'no_extra_consecutive_blank_lines' => true, - 'no_php4_constructor' => true, + 'multiline_comment_opening_closing' => true, + 'yoda_style' => false, + 'phpdoc_to_comment' => false, + 'phpdoc_no_package' => false, + //'no_php4_constructor' => true, 'no_useless_else' => true, 'no_useless_return' => true, 'ordered_class_elements' => true, 'ordered_imports' => true, 'phpdoc_order' => true, 'no_break_comment' => true, - '@PHP56Migration' => true, - '@PHP56Migration:risky' => true, - '@PHPUnit57Migration:risky' => true, + //'@PHP56Migration' => true, + //'@PHP56Migration:risky' => true, + //'@PHPUnit57Migration:risky' => true, // To be tested before insertion: // 'strict_comparison' => true, // 'strict_param' => true, @@ -82,9 +87,6 @@ $finder = PhpCsFixer\Finder::create() return PhpCsFixer\Config::create() ->setRules( - [ - '@Symfony' => true, - 'array_syntax' => ['syntax' => 'short'] - ] + $rules ) ->setFinder($finder); \ No newline at end of file