Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Aug 7, 2024
1 parent 5bd65c8 commit a71a19f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 51 deletions.
62 changes: 16 additions & 46 deletions src/RuleSet/Sets/Laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,10 @@ public function rules(): array
return [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
],
'binary_operator_spaces' => ['default' => 'single_space'],
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'blank_line_before_statement' => [
'statements' => [
'continue',
'return',
],
],
'blank_line_before_statement' => ['statements' => ['continue', 'return']],
'blank_line_between_import_groups' => true,
'blank_lines_before_namespace' => true,
'braces_position' => [
Expand Down Expand Up @@ -53,9 +46,7 @@ public function rules(): array
],
'clean_namespace' => true,
'compact_nullable_type_declaration' => true,
'concat_space' => [
'spacing' => 'none',
],
'concat_space' => ['spacing' => 'none'],
'constant_case' => ['case' => 'lower'],
'control_structure_braces' => true,
'control_structure_continuation_position' => [
Expand Down Expand Up @@ -83,13 +74,9 @@ public function rules(): array
'lowercase_static_reference' => true,
'magic_constant_casing' => true,
'magic_method_casing' => true,
'method_argument_space' => [
'on_multiline' => 'ignore',
],
'method_argument_space' => ['on_multiline' => 'ignore'],
'method_chaining_indentation' => true,
'multiline_whitespace_before_semicolons' => [
'strategy' => 'no_multi_line',
],
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
'native_function_casing' => true,
'native_type_declaration_casing' => true,
'new_with_parentheses' => [
Expand All @@ -105,27 +92,17 @@ public function rules(): array
'no_closing_tag' => true,
'no_empty_phpdoc' => true,
'no_empty_statement' => true,
'no_extra_blank_lines' => [
'tokens' => [
'extra',
'throw',
'use',
],
],
'no_extra_blank_lines' => ['tokens' => ['extra', 'throw', 'use']],
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
'no_mixed_echo_print' => [
'use' => 'echo',
],
'no_mixed_echo_print' => ['use' => 'echo'],
'no_multiline_whitespace_around_double_arrow' => true,
'no_multiple_statements_per_line' => true,
'no_short_bool_cast' => true,
'no_singleline_whitespace_before_semicolons' => true,
'no_space_around_double_colon' => true,
'no_spaces_after_function_name' => true,
'no_spaces_around_offset' => [
'positions' => ['inside', 'outside'],
],
'no_spaces_around_offset' => ['positions' => ['inside', 'outside']],
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true,
'allow_unused_params' => true,
Expand All @@ -148,7 +125,10 @@ public function rules(): array
'nullable_type_declaration' => true,
'nullable_type_declaration_for_default_null_value' => true,
'object_operator_without_whitespace' => true,
'ordered_imports' => ['sort_algorithm' => 'alpha', 'imports_order' => ['const', 'class', 'function']],
'ordered_imports' => [
'sort_algorithm' => 'alpha',
'imports_order' => ['const', 'class', 'function'],
],
'ordered_interfaces' => true,
'ordered_traits' => true,
'phpdoc_align' => [
Expand Down Expand Up @@ -177,11 +157,7 @@ public function rules(): array
],
'phpdoc_single_line_var_spacing' => true,
'phpdoc_summary' => false,
'phpdoc_tag_type' => [
'tags' => [
'inheritdoc' => 'inline',
],
],
'phpdoc_tag_type' => ['tags' => ['inheritdoc' => 'inline']],
'phpdoc_to_comment' => false,
'phpdoc_trim' => true,
'phpdoc_types' => true,
Expand All @@ -193,14 +169,10 @@ public function rules(): array
'short_scalar_cast' => true,
'simplified_null_return' => false,
'single_blank_line_at_eof' => true,
'single_class_element_per_statement' => [
'elements' => ['const', 'property'],
],
'single_class_element_per_statement' => ['elements' => ['const', 'property']],
'single_import_per_statement' => true,
'single_line_after_imports' => true,
'single_line_comment_style' => [
'comment_types' => ['hash'],
],
'single_line_comment_style' => ['comment_types' => ['hash']],
'single_line_empty_body' => true,
'single_quote' => true,
'single_space_around_construct' => true,
Expand All @@ -216,9 +188,7 @@ public function rules(): array
'type_declaration_spaces' => true,
'types_spaces' => true,
'unary_operator_spaces' => true,
'visibility_required' => [
'elements' => ['method', 'property'],
],
'visibility_required' => ['elements' => ['method', 'property']],
'whitespace_after_comma_in_array' => true,
'yoda_style' => [
'always_move_variable' => false,
Expand Down
6 changes: 1 addition & 5 deletions src/RuleSet/Sets/Spatie.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ public function rules(): array
],
'phpdoc_single_line_var_spacing' => true,
'phpdoc_var_without_name' => true,
'class_attributes_separation' => [
'elements' => [
'method' => 'one',
],
],
'class_attributes_separation' => ['elements' => ['method' => 'one']],
'method_argument_space' => [
'on_multiline' => 'ensure_fully_multiline',
'keep_multiple_spaces_after_comma' => true,
Expand Down

0 comments on commit a71a19f

Please sign in to comment.