Skip to content

Commit

Permalink
Merge pull request #15 from SofLesc/feat/phpdoc-signle-line
Browse files Browse the repository at this point in the history
feat: Add rule for phpdoc in single line
  • Loading branch information
SofLesc committed Feb 19, 2020
2 parents 6f754a2 + 62cb2a3 commit d4be195
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 d4be195

Please sign in to comment.