Skip to content

Commit ae1943a

Browse files
committed
Code Style
1 parent 7169ee6 commit ae1943a

23 files changed

+233
-184
lines changed

.php_cs.dist

Lines changed: 95 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -8,80 +8,101 @@ return PhpCsFixer\Config::create()
88
->setIndent("\t")
99
->setLineEnding("\r\n")
1010
->setRules([
11-
'array_syntax' => ['syntax' => 'short'],
12-
'blank_line_after_namespace' => true,
13-
'blank_line_after_opening_tag' => true,
14-
'blank_line_before_statement' => ['statements' => ['break', 'case', 'continue', 'declare', 'default', 'die', 'do', 'exit', 'for', 'foreach', 'goto', 'if', 'return', 'switch', 'throw', 'try', 'while', 'yield']],
15-
'combine_consecutive_issets' => true,
16-
'combine_consecutive_unsets' => true,
17-
'concat_space' => ['spacing' => 'one'],
18-
'declare_equal_normalize' => ['space' => 'single'],
19-
'dir_constant' => true,
20-
'elseif' => true,
21-
'ereg_to_preg' => true,
22-
'explicit_indirect_variable' => true,
23-
'explicit_string_variable' => true,
24-
'full_opening_tag' => true,
25-
'function_typehint_space' => true,
26-
'is_null' => true,
27-
'linebreak_after_opening_tag' => true,
28-
'list_syntax' => ['syntax' => 'short'],
29-
'logical_operators' => true,
30-
'lowercase_cast' => true,
31-
'lowercase_constants' => true,
32-
'lowercase_keywords' => true,
33-
'lowercase_static_reference' => true,
34-
'magic_constant_casing' => true,
35-
'magic_method_casing' => true,
36-
'method_chaining_indentation' => true,
37-
'modernize_types_casting' => true,
38-
'native_function_casing' => true,
39-
'native_function_invocation' => [],
40-
'new_with_braces' => true,
41-
'no_alias_functions' => ['sets' => ['@all']],
42-
'no_alternative_syntax' => true,
43-
'no_blank_lines_after_phpdoc' => true,
44-
'no_break_comment' => ['comment_text' => 'Intentionally fall through'],
45-
'no_closing_tag' => true,
46-
'no_empty_comment' => true,
47-
'no_empty_statement' => true,
48-
'no_leading_namespace_whitespace' => true,
49-
'no_spaces_inside_parenthesis' => true,
50-
'no_superfluous_phpdoc_tags' => true,
51-
'no_trailing_whitespace' => true,
52-
'no_trailing_whitespace_in_comment' => true,
53-
'no_unneeded_control_parentheses' => true,
54-
'no_unneeded_final_method' => true,
55-
'no_unreachable_default_argument_value' => true,
56-
'no_unset_cast' => true,
57-
'no_useless_return' => true,
58-
'no_whitespace_before_comma_in_array' => true,
59-
'no_whitespace_in_blank_line' => true,
60-
'non_printable_character' => ['use_escape_sequences_in_strings' => true],
61-
'normalize_index_brace' => true,
62-
'not_operator_with_successor_space' => true,
63-
'ordered_class_elements' => ['sortAlgorithm' => 'alpha',],
64-
'protected_to_private' => true,
65-
'psr0' => true,
66-
'return_type_declaration' => ['space_before' => 'one',],
67-
'semicolon_after_instruction' => true,
68-
'set_type_to_cast' => true,
69-
'short_scalar_cast' => true,
70-
'simple_to_complex_string_variable' => true,
71-
'simplified_null_return' => true,
72-
'single_blank_line_at_eof' => true,
73-
'single_blank_line_before_namespace' => true,
74-
'single_import_per_statement' => true,
75-
'single_line_after_imports' => true,
76-
'single_line_comment_style' => true,
77-
'single_quote' => true,
78-
'single_trait_insert_per_statement' => true,
79-
'standardize_not_equals' => true,
80-
'switch_case_semicolon_to_colon' => true,
81-
'switch_case_space' => true,
82-
'ternary_to_null_coalescing' => true,
83-
'void_return' => true,
84-
'yoda_style' => true,
11+
'array_indentation' => true,
12+
'array_syntax' => ['syntax' => 'short'],
13+
'binary_operator_spaces' => true,
14+
'blank_line_after_namespace' => true,
15+
'blank_line_after_opening_tag' => true,
16+
'blank_line_before_statement' => ['statements' => ['break', 'case', 'continue', 'declare', 'default', 'die', 'do', 'exit', 'for', 'foreach', 'goto', 'if', 'return', 'switch', 'throw', 'try', 'while', 'yield']],
17+
'class_attributes_separation' => true,
18+
'combine_consecutive_issets' => true,
19+
'combine_consecutive_unsets' => true,
20+
'combine_nested_dirname' => true,
21+
'compact_nullable_typehint' => true,
22+
'concat_space' => ['spacing' => 'one'],
23+
'constant_case' => true,
24+
'declare_equal_normalize' => ['space' => 'single'],
25+
'dir_constant' => true,
26+
'elseif' => true,
27+
'ereg_to_preg' => true,
28+
'explicit_indirect_variable' => true,
29+
'explicit_string_variable' => true,
30+
'full_opening_tag' => true,
31+
'function_typehint_space' => true,
32+
'is_null' => true,
33+
'linebreak_after_opening_tag' => true,
34+
'list_syntax' => ['syntax' => 'short'],
35+
'logical_operators' => true,
36+
'lowercase_cast' => true,
37+
'lowercase_constants' => true,
38+
'lowercase_keywords' => true,
39+
'lowercase_static_reference' => true,
40+
'magic_constant_casing' => true,
41+
'magic_method_casing' => true,
42+
'method_chaining_indentation' => true,
43+
'modernize_types_casting' => true,
44+
'native_function_casing' => true,
45+
'native_function_invocation' => [],
46+
'new_with_braces' => true,
47+
'no_alias_functions' => ['sets' => ['@all']],
48+
'no_alternative_syntax' => true,
49+
'no_blank_lines_after_phpdoc' => true,
50+
'no_break_comment' => ['comment_text' => 'Intentionally fall through'],
51+
'no_closing_tag' => true,
52+
'no_empty_comment' => true,
53+
'no_empty_statement' => true,
54+
'no_leading_namespace_whitespace' => true,
55+
'no_spaces_inside_parenthesis' => true,
56+
'no_superfluous_phpdoc_tags' => true,
57+
'no_trailing_whitespace' => true,
58+
'no_trailing_whitespace_in_comment' => true,
59+
'no_unneeded_control_parentheses' => true,
60+
'no_unneeded_final_method' => true,
61+
'no_unreachable_default_argument_value' => true,
62+
'no_unset_cast' => true,
63+
'no_useless_return' => true,
64+
'no_whitespace_before_comma_in_array' => true,
65+
'no_whitespace_in_blank_line' => true,
66+
'non_printable_character' => ['use_escape_sequences_in_strings' => true],
67+
'normalize_index_brace' => true,
68+
'not_operator_with_successor_space' => true,
69+
'ordered_class_elements' => true,
70+
'protected_to_private' => true,
71+
'psr_autoloading' => true,
72+
'return_type_declaration' => ['space_before' => 'one',],
73+
'semicolon_after_instruction' => true,
74+
'set_type_to_cast' => true,
75+
'short_scalar_cast' => true,
76+
'simple_to_complex_string_variable' => true,
77+
'simple_to_complex_string_variable' => true,
78+
'simplified_if_return' => true,
79+
'simplified_null_return' => true,
80+
'simplified_null_return' => true,
81+
'single_blank_line_at_eof' => true,
82+
'single_blank_line_at_eof' => true,
83+
'single_blank_line_before_namespace' => true,
84+
'single_class_element_per_statement' => true,
85+
'single_import_per_statement' => true,
86+
'single_line_after_imports' => true,
87+
'single_line_comment_style' => true,
88+
'single_quote' => true,
89+
'single_trait_insert_per_statement' => true,
90+
'standardize_not_equals' => true,
91+
'static_lambda' => true,
92+
'string_line_ending' => true,
93+
'switch_case_semicolon_to_colon' => true,
94+
'switch_case_space' => true,
95+
'switch_continue_to_break' => true,
96+
'ternary_operator_spaces' => true,
97+
'ternary_to_elvis_operator' => true,
98+
'ternary_to_null_coalescing' => true,
99+
'trailing_comma_in_multiline_array' => true,
100+
'trim_array_spaces' => true,
101+
'unary_operator_spaces' => true,
102+
'visibility_required' => ['property', 'method', 'const', ],
103+
'void_return' => true,
104+
'whitespace_after_comma_in_array' => true,
105+
'yoda_style' => true,
85106
// 'braces' => ['position_after_control_structures' => 'next', 'position_after_functions_and_oop_constructs' => 'next', 'position_after_anonymous_constructs' => 'next',],
86107
// 'no_unneeded_curly_braces' => true,
87108
])

src/PHPFUI/InstaDoc/CSSSelector.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
class CSSSelector extends \PHPFUI\Input\Select
66
{
7-
87
public function __construct(\PHPFUI\Page $page, string $current = '')
98
{
109
parent::__construct('CSS');
@@ -18,5 +17,4 @@ public function __construct(\PHPFUI\Page $page, string $current = '')
1817
$this->addOption($name, $value, $current == $value);
1918
}
2019
}
21-
2220
}

src/PHPFUI/InstaDoc/ChildClasses.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,4 @@ public static function save(string $file = '../ChildClasses.serial') : bool
9191

9292
return file_put_contents($file, serialize(self::$children)) > 0;
9393
}
94-
9594
}

0 commit comments

Comments
 (0)