Skip to content

Commit d4be195

Browse files
authored
Merge pull request #15 from SofLesc/feat/phpdoc-signle-line
feat: Add rule for phpdoc in single line
2 parents 6f754a2 + 62cb2a3 commit d4be195

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

src/Php71.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public function getRules()
2929
'increment_style' => ['style' => 'post'],
3030
'yoda_style' => false,
3131
'ordered_imports' => ['sort_algorithm' => 'alpha'],
32+
'phpdoc_line_span' => [
33+
'property' => 'single',
34+
'const' => 'single',
35+
],
3236
];
3337

3438
return $rules;

src/Php72.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public function getRules()
2929
'increment_style' => ['style' => 'post'],
3030
'yoda_style' => false,
3131
'ordered_imports' => ['sort_algorithm' => 'alpha'],
32+
'phpdoc_line_span' => [
33+
'property' => 'single',
34+
'const' => 'single',
35+
],
3236
];
3337

3438
return $rules;

src/Php73.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public function getRules()
2929
'increment_style' => ['style' => 'post'],
3030
'yoda_style' => false,
3131
'ordered_imports' => ['sort_algorithm' => 'alpha'],
32+
'phpdoc_line_span' => [
33+
'property' => 'single',
34+
'const' => 'single',
35+
],
3236
];
3337

3438
return $rules;

src/Php74.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public function getRules()
2929
'increment_style' => ['style' => 'post'],
3030
'yoda_style' => false,
3131
'ordered_imports' => ['sort_algorithm' => 'alpha'],
32+
'phpdoc_line_span' => [
33+
'property' => 'single',
34+
'const' => 'single',
35+
],
3236
];
3337

3438
return $rules;

0 commit comments

Comments
 (0)