Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
relax - phpdoc_tag_type
- 9260b92

laravel - control_structure_continuation_position
- 47d0051
- laravel/pint@08eb981

laravl - new_with_parentheses
- 65a81e0
- laravel/pint@72f3117

laravel - no_superfluous_phpdoc_tags
- eac1005
- laravel/pint@7a07930

laravel - phpdoc_align
- e67f1ef
- laravel/pint@07494e2

laravel - phpdoc_order
- 4a0de72
- laravel/pint@45ad986
  • Loading branch information
realodix committed Aug 7, 2024
1 parent db23b7c commit 5194790
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
25 changes: 5 additions & 20 deletions src/RuleSet/Sets/Laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ public function rules(): array
'concat_space' => ['spacing' => 'none'],
'constant_case' => ['case' => 'lower'],
'control_structure_braces' => true,
'control_structure_continuation_position' => [
'position' => 'same_line',
],
'control_structure_continuation_position' => ['position' => 'same_line'],
'declare_equal_normalize' => true,
'declare_parentheses' => true,
'elseif' => true,
Expand Down Expand Up @@ -79,10 +77,7 @@ public function rules(): array
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
'native_function_casing' => true,
'native_type_declaration_casing' => true,
'new_with_parentheses' => [
'named_class' => false,
'anonymous_class' => false,
],
'new_with_parentheses' => ['named_class' => false, 'anonymous_class' => false],
'no_alias_functions' => true,
'no_alias_language_construct_call' => true,
'no_alternative_syntax' => true,
Expand All @@ -103,10 +98,7 @@ public function rules(): array
'no_space_around_double_colon' => true,
'no_spaces_after_function_name' => true,
'no_spaces_around_offset' => ['positions' => ['inside', 'outside']],
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true,
'allow_unused_params' => true,
],
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true, 'allow_unused_params' => true],
'no_trailing_comma_in_singleline' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
Expand All @@ -131,20 +123,13 @@ public function rules(): array
],
'ordered_interfaces' => true,
'ordered_traits' => true,
'phpdoc_align' => [
'align' => 'left',
'spacing' => [
'param' => 2,
],
],
'phpdoc_align' => ['align' => 'left', 'spacing' => ['param' => 2]],
'phpdoc_indent' => true,
'phpdoc_inline_tag_normalizer' => true,
'phpdoc_no_access' => true,
'phpdoc_no_package' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_order' => [
'order' => ['param', 'return', 'throws'],
],
'phpdoc_order' => ['order' => ['param', 'return', 'throws']],
'phpdoc_scalar' => true,
'phpdoc_separation' => [
'groups' => [
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Sets/Relax.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function mainRules(): array
* Laravel rules adjustment
*/
'not_operator_with_successor_space' => false,
'phpdoc_tag_type' => false,
'binary_operator_spaces' => [
'default' => 'single_space',
'operators' => ['=>' => 'at_least_single_space'],
Expand All @@ -81,7 +82,6 @@ public function mainRules(): array
],
],
'ordered_imports' => ['sort_algorithm' => 'alpha', 'imports_order' => ['class', 'function', 'const']],
'phpdoc_tag_type' => false,
'single_import_per_statement' => ['group_to_single_imports' => false],
'space_after_semicolon' => ['remove_in_empty_for_expressions' => true],
// TODO: Add 'match' & 'parameters' when PHP 8.0+ is required
Expand Down

0 comments on commit 5194790

Please sign in to comment.