From 3922f950c88abc3d70565346cab09732f05c8859 Mon Sep 17 00:00:00 2001 From: Julio Date: Mon, 16 Dec 2019 18:17:43 +0100 Subject: [PATCH] Fix php code + update ecs settings --- .php_cs.dist | 7 ------- chash.php | 2 +- ecs.yaml | 1 + 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.php_cs.dist b/.php_cs.dist index 72db84c..e740ad1 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -14,22 +14,15 @@ $rules = [ 'blank_line_after_opening_tag' => false, 'no_extra_consecutive_blank_lines' => true, 'multiline_comment_opening_closing' => true, - 'yoda_style' => false, 'phpdoc_to_comment' => false, - 'phpdoc_no_package' => false, 'phpdoc_annotation_without_dot' => false, - 'increment_style' => ['style' => 'post'], 'no_useless_else' => false, - //'no_php4_constructor' => true, 'single_quote' => false, '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, // To be tested before insertion: // 'strict_comparison' => true, // 'strict_param' => true, diff --git a/chash.php b/chash.php index ad00cb0..5a3c1ef 100755 --- a/chash.php +++ b/chash.php @@ -33,7 +33,7 @@ $application = new Application('Chamilo Command Line Interface', '1.0'); $helpers = [ - 'configuration' => new Chash\Helpers\ConfigurationHelper() + 'configuration' => new Chash\Helpers\ConfigurationHelper(), ]; $helperSet = $application->getHelperSet(); foreach ($helpers as $name => $helper) { diff --git a/ecs.yaml b/ecs.yaml index bc6a810..a2c3437 100644 --- a/ecs.yaml +++ b/ecs.yaml @@ -1,3 +1,4 @@ parameters: sets: + - 'clean-code' - 'symfony'