mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Update php-cs-fixer config files
This commit is contained in:
@@ -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
@@ -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,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
|
||||||
|
|||||||
Reference in New Issue
Block a user