Skip to content

Commit

Permalink
Merge pull request #25 from nextcloud/casting-rules
Browse files Browse the repository at this point in the history
style: add rules for casts / single quotes
  • Loading branch information
ChristophWurst authored Aug 23, 2024
2 parents d73f7f5 + 1f070fd commit f026c31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 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,10 +58,12 @@ 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,
'single_line_after_imports' => true,
'single_quote' => ['strings_containing_single_quote_chars' => false],
'switch_case_space' => true,
'types_spaces' => ['space' => 'none', 'space_multiple_catch' => 'none'],
'visibility_required' => [
Expand Down

0 comments on commit f026c31

Please sign in to comment.