Skip to content

Commit

Permalink
deprecated php-cs-fixer rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Nov 21, 2024
1 parent f16e236 commit 8bf59ff
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
23 changes: 14 additions & 9 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
'encoding' => true,
'full_opening_tag' => true,
'blank_line_after_namespace' => true,
'braces' => true,
// "single_space_around_construct" => true,
// "control_structure_braces" => true,
// "control_structure_continuation_position" => true,
// "declare_parentheses" => true,
// "no_multiple_statements_per_line" => true,
// "braces_position" => true,
// "statement_indentation" => true,
'class_definition' => true,
'elseif' => true,
'function_declaration' => true,
Expand All @@ -29,7 +35,7 @@
'no_break_comment' => true,
'no_closing_tag' => true,
'no_spaces_after_function_name' => true,
'no_spaces_inside_parenthesis' => true,
'spaces_inside_parentheses' => false,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'single_blank_line_at_eof' => true,
Expand All @@ -50,13 +56,13 @@
'class_attributes_separation' => ['elements' => ['method' => 'one']],
'concat_space' => ['spacing' => 'one'],
'declare_equal_normalize' => true,
'function_typehint_space' => true,
'type_declaration_spaces' => true,
'include' => true,
'lowercase_cast' => true,
'lowercase_static_reference' => true,
'magic_constant_casing' => true,
'native_function_casing' => true,
'new_with_braces' => true,
'new_with_parentheses' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
'no_empty_comment' => true,
Expand All @@ -77,9 +83,8 @@
'no_short_bool_cast' => 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_unneeded_curly_braces' => true,
'no_trailing_comma_in_singleline' => true,
'no_unneeded_braces' => true,
'no_unneeded_final_method' => true,
'no_unused_imports' => true,
'no_whitespace_before_comma_in_array' => true,
Expand Down Expand Up @@ -120,7 +125,7 @@
'return_type_declaration' => true,
'semicolon_after_instruction' => true,
'short_scalar_cast' => true,
'single_blank_line_before_namespace' => true,
'blank_lines_before_namespace' => true,
'single_line_comment_style' => [
'comment_types' => ['hash'],
],
Expand Down Expand Up @@ -148,7 +153,7 @@
],
'scope' => 'namespaced'
],
'native_function_type_declaration_casing' => true,
'native_type_declaration_casing' => true,
'no_alias_functions' => [
'sets' => [
'@internal'
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/TablerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function load(array $configs, ContainerBuilder $container): void
$config = $this->processConfiguration($configuration, $configs);
$options = $this->getContextOptions($config);

if (count($options) > 0) {
if (\count($options) > 0) {
$container->setParameter('tabler_bundle.options', $options);
}

Expand Down

0 comments on commit 8bf59ff

Please sign in to comment.