Skip to content

Commit

Permalink
Fix php code + update ecs settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Dec 16, 2019
1 parent c1b7667 commit 3922f95
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
7 changes: 0 additions & 7 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion chash.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions ecs.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
parameters:
sets:
- 'clean-code'
- 'symfony'

0 comments on commit 3922f95

Please sign in to comment.