Skip to content

Commit

Permalink
feat: Add rule for properties phpdoc in single line
Browse files Browse the repository at this point in the history
  • Loading branch information
Sofia Lescano Carroll committed Feb 19, 2020
1 parent 6f754a2 commit 62cb2a3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Php71.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public function getRules()
'increment_style' => ['style' => 'post'],
'yoda_style' => false,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'phpdoc_line_span' => [
'property' => 'single',
'const' => 'single',
],
];

return $rules;
Expand Down
4 changes: 4 additions & 0 deletions src/Php72.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public function getRules()
'increment_style' => ['style' => 'post'],
'yoda_style' => false,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'phpdoc_line_span' => [
'property' => 'single',
'const' => 'single',
],
];

return $rules;
Expand Down
4 changes: 4 additions & 0 deletions src/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public function getRules()
'increment_style' => ['style' => 'post'],
'yoda_style' => false,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'phpdoc_line_span' => [
'property' => 'single',
'const' => 'single',
],
];

return $rules;
Expand Down
4 changes: 4 additions & 0 deletions src/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public function getRules()
'increment_style' => ['style' => 'post'],
'yoda_style' => false,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'phpdoc_line_span' => [
'property' => 'single',
'const' => 'single',
],
];

return $rules;
Expand Down

0 comments on commit 62cb2a3

Please sign in to comment.