Skip to content

Commit

Permalink
style: add rules for casts
Browse files Browse the repository at this point in the history
#24

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
  • Loading branch information
kesselb committed Aug 23, 2024
1 parent d73f7f5 commit f8e84b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function getRules() : array {
],
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'cast_spaces' => ['space' => 'single'],
'curly_braces_position' => [
'classes_opening_brace' => 'same_line',
'functions_opening_brace' => 'same_line',
Expand All @@ -37,13 +38,15 @@ public function getRules() : array {
'indentation_type' => true,
'line_ending' => true,
'list_syntax' => true,
'lowercase_cast' => true,
'lowercase_keywords' => true,
'method_argument_space' => [
'on_multiline' => 'ignore',
],
'method_chaining_indentation' => true,
'no_closing_tag' => true,
'no_leading_import_slash' => true,
'no_short_bool_cast' => true,
'no_spaces_after_function_name' => true,
'no_spaces_inside_parenthesis' => true,
'no_trailing_whitespace' => true,
Expand All @@ -55,6 +58,7 @@ public function getRules() : array {
'sort_algorithm' => 'alpha'
],
'phpdoc_var_annotation_correct_order' => true,
'short_scalar_cast' => true,
'single_blank_line_at_eof' => true,
'single_class_element_per_statement' => true,
'single_import_per_statement' => true,
Expand Down

0 comments on commit f8e84b5

Please sign in to comment.