Skip to content

Commit

Permalink
Fix: Configure phpdoc_separation fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Sep 2, 2022
1 parent 4bde5b4 commit 049331c
Show file tree
Hide file tree
Showing 6 changed files with 150 additions and 6 deletions.
26 changes: 25 additions & 1 deletion src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,31 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'str',
],
],
'phpdoc_separation' => true,
'phpdoc_separation' => [
'groups' => [
[
'deprecated',
'link',
'see',
'since',
],
[
'author',
'copyright',
'license',
],
[
'category',
'package',
'subpackage',
],
[
'property',
'property-read',
'property-write',
],
],
],
'phpdoc_single_line_var_spacing' => true,
'phpdoc_summary' => true,
'phpdoc_tag_casing' => [
Expand Down
26 changes: 25 additions & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,31 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'str',
],
],
'phpdoc_separation' => true,
'phpdoc_separation' => [
'groups' => [
[
'deprecated',
'link',
'see',
'since',
],
[
'author',
'copyright',
'license',
],
[
'category',
'package',
'subpackage',
],
[
'property',
'property-read',
'property-write',
],
],
],
'phpdoc_single_line_var_spacing' => true,
'phpdoc_summary' => true,
'phpdoc_tag_casing' => [
Expand Down
26 changes: 25 additions & 1 deletion src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,31 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'str',
],
],
'phpdoc_separation' => true,
'phpdoc_separation' => [
'groups' => [
[
'deprecated',
'link',
'see',
'since',
],
[
'author',
'copyright',
'license',
],
[
'category',
'package',
'subpackage',
],
[
'property',
'property-read',
'property-write',
],
],
],
'phpdoc_single_line_var_spacing' => true,
'phpdoc_summary' => true,
'phpdoc_tag_casing' => [
Expand Down
26 changes: 25 additions & 1 deletion test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,31 @@ final class Php74Test extends ExplicitRuleSetTestCase
'str',
],
],
'phpdoc_separation' => true,
'phpdoc_separation' => [
'groups' => [
[
'deprecated',
'link',
'see',
'since',
],
[
'author',
'copyright',
'license',
],
[
'category',
'package',
'subpackage',
],
[
'property',
'property-read',
'property-write',
],
],
],
'phpdoc_single_line_var_spacing' => true,
'phpdoc_summary' => true,
'phpdoc_tag_casing' => [
Expand Down
26 changes: 25 additions & 1 deletion test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,31 @@ final class Php80Test extends ExplicitRuleSetTestCase
'str',
],
],
'phpdoc_separation' => true,
'phpdoc_separation' => [
'groups' => [
[
'deprecated',
'link',
'see',
'since',
],
[
'author',
'copyright',
'license',
],
[
'category',
'package',
'subpackage',
],
[
'property',
'property-read',
'property-write',
],
],
],
'phpdoc_single_line_var_spacing' => true,
'phpdoc_summary' => true,
'phpdoc_tag_casing' => [
Expand Down
26 changes: 25 additions & 1 deletion test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,31 @@ final class Php81Test extends ExplicitRuleSetTestCase
'str',
],
],
'phpdoc_separation' => true,
'phpdoc_separation' => [
'groups' => [
[
'deprecated',
'link',
'see',
'since',
],
[
'author',
'copyright',
'license',
],
[
'category',
'package',
'subpackage',
],
[
'property',
'property-read',
'property-write',
],
],
],
'phpdoc_single_line_var_spacing' => true,
'phpdoc_summary' => true,
'phpdoc_tag_casing' => [
Expand Down

0 comments on commit 049331c

Please sign in to comment.