Skip to content

Commit

Permalink
Fixed issue #42. Fix code as per coding standard
Browse files Browse the repository at this point in the history
  • Loading branch information
visto9259 committed May 23, 2024
1 parent bd128e6 commit e2fff77
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,35 @@ public function getRules(): array
'blank_line_after_opening_tag' => true,
'blank_line_after_namespace' => true,
'blank_line_before_statement' => ['statements' => ['return']],
'braces' => true,
// 'braces' => true,
'braces_position' => true,
'cast_spaces' => true,
'class_attributes_separation' => ['elements' => ['method' => 'one']],
'class_definition' => true,
'combine_consecutive_unsets' => true,
'concat_space' => false,
'constant_case' => ['case' => 'lower'],
'control_structure_braces' => true,
'control_structure_continuation_position' => true,
'declare_strict_types' => true,
'declare_parentheses' => true,
'echo_tag_syntax' => true,
'elseif' => true,
'encoding' => true,
'full_opening_tag' => true,
'function_declaration' => true,
'function_typehint_space' => true,
'single_line_comment_style' => ['comment_types' => ['hash']],
// 'function_typehint_space' => true,
'header_comment' => false,
'include' => true,
'indentation_type' => true,
'linebreak_after_opening_tag' => true,
'line_ending' => true,
'constant_case' => ['case' => 'lower'],
'lowercase_keywords' => true,
'method_argument_space' => true,
'class_attributes_separation' => ['elements' => ['method' => 'one']],
'modernize_types_casting' => true,
'native_function_casing' => true,
'new_with_braces' => true,
// 'new_with_braces' => true,
'new_with_parentheses' => true,
'no_alias_functions' => true,
'no_blank_lines_after_class_opening' => true,
'no_closing_tag' => true,
Expand All @@ -55,20 +60,21 @@ public function getRules(): array
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
'no_multiline_whitespace_around_double_arrow' => true,
'no_multiple_statements_per_line' => true,
'multiline_whitespace_before_semicolons' => true,
'no_short_bool_cast' => true,
'echo_tag_syntax' => true,
'no_singleline_whitespace_before_semicolons' => true,
'no_spaces_around_offset' => true,
'no_trailing_comma_in_list_call' => true,
'no_trailing_comma_in_singleline_array' => true,
// 'no_trailing_comma_in_list_call' => true,
// 'no_trailing_comma_in_singleline_array' => true,
'no_trailing_comma_in_singleline' => true,
'no_trailing_whitespace_in_comment' => true,
'no_unneeded_control_parentheses' => true,
'no_unreachable_default_argument_value' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'no_spaces_inside_parenthesis' => true,
'no_trailing_whitespace_in_comment' => true,
// 'no_spaces_inside_parenthesis' => true,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
'normalize_index_brace' => true,
Expand All @@ -88,14 +94,19 @@ public function getRules(): array
'single_class_element_per_statement' => true,
'single_import_per_statement' => true,
'single_line_after_imports' => true,
'single_line_comment_style' => ['comment_types' => ['hash']],
'single_quote' => true,
'single_space_around_construct' => true,
'spaces_inside_parentheses' => true,
'standardize_not_equals' => true,
'statement_indentation' => true,
'strict_comparison' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'ternary_operator_spaces' => true,
'trailing_comma_in_multiline' => true,
'trim_array_spaces' => true,
'type_declaration_spaces' => true,
'unary_operator_spaces' => true,
'visibility_required' => true,
'whitespace_after_comma_in_array' => true,
Expand Down

0 comments on commit e2fff77

Please sign in to comment.