Update php-cs-fixer config files

This commit is contained in:
DariusIII
2019-02-06 15:55:14 +01:00
parent 08003e33bf
commit d94be37565
3 changed files with 61 additions and 15 deletions
+30 -7
View File
@@ -3,13 +3,36 @@
* Config for PHP-CS-Fixer ver2 * Config for PHP-CS-Fixer ver2
*/ */
$rules = [ $rules = [
'@PSR2' => true, 'psr0' => false,
'array_syntax' => ['syntax' => 'short'], '@PSR2' => true,
'no_multiline_whitespace_before_semicolons' => true, 'blank_line_after_namespace' => true,
'no_short_echo_tag' => true, 'braces' => true,
'no_unused_imports' => true, 'class_definition' => true,
'not_operator_with_successor_space' => true, 'elseif' => true,
'ordered_imports' => ['sortAlgorithm' => 'alpha'], 'function_declaration' => true,
'indentation_type' => true,
'line_ending' => true,
'lowercase_constants' => true,
'lowercase_keywords' => true,
'method_argument_space' => [
'ensure_fully_multiline' => true, ],
'no_break_comment' => true,
'no_closing_tag' => true,
'no_spaces_after_function_name' => true,
'no_spaces_inside_parenthesis' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'single_blank_line_at_eof' => true,
'single_class_element_per_statement' => [
'elements' => ['property'],
],
'single_import_per_statement' => true,
'single_line_after_imports' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'visibility_required' => true,
'encoding' => true,
'full_opening_tag' => true,
]; ];
$excludes = [ $excludes = [
// add exclude project directory // add exclude project directory
+30 -8
View File
@@ -3,14 +3,36 @@
* Config for PHP-CS-Fixer ver2 * Config for PHP-CS-Fixer ver2
*/ */
$rules = [ $rules = [
'@PSR2' => true, 'psr0' => false,
// addtional rules '@PSR2' => true,
'array_syntax' => ['syntax' => 'short'], 'blank_line_after_namespace' => true,
'no_multiline_whitespace_before_semicolons' => true, 'braces' => true,
'no_short_echo_tag' => true, 'class_definition' => true,
'no_unused_imports' => true, 'elseif' => true,
'not_operator_with_successor_space' => true, 'function_declaration' => true,
'ordered_imports' => ['sortAlgorithm' => 'alpha'], 'indentation_type' => true,
'line_ending' => true,
'lowercase_constants' => true,
'lowercase_keywords' => true,
'method_argument_space' => [
'ensure_fully_multiline' => true, ],
'no_break_comment' => true,
'no_closing_tag' => true,
'no_spaces_after_function_name' => true,
'no_spaces_inside_parenthesis' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'single_blank_line_at_eof' => true,
'single_class_element_per_statement' => [
'elements' => ['property'],
],
'single_import_per_statement' => true,
'single_line_after_imports' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'visibility_required' => true,
'encoding' => true,
'full_opening_tag' => true,
]; ];
$excludes = [ $excludes = [
// add exclude project directory // add exclude project directory
+1
View File
@@ -1,4 +1,5 @@
2019-02-06 DariusIII 2019-02-06 DariusIII
* Chg: Update php-cs-fixer config files
* Chg: Update ProfileController * Chg: Update ProfileController
* Chg: Fix errors in email sending Jobs * Chg: Fix errors in email sending Jobs
* Chg: Update Mail and Jobs to use user directly * Chg: Update Mail and Jobs to use user directly