Skip to content

Commit 2d47fb9

Browse files
authored
Add fixer's descriptions (#910)
1 parent c047e00 commit 2d47fb9

File tree

47 files changed

+47
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+47
-11
lines changed

src/Fixer/CommentSurroundedBySpacesFixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function getDefinition(): FixerDefinitionInterface
2727
[new CodeSample('<?php
2828
/*foo*/
2929
')],
30+
'',
3031
);
3132
}
3233

src/Fixer/CommentedOutFunctionFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getDefinition(): FixerDefinitionInterface
3636
[new CodeSample('<?php
3737
var_dump($x);
3838
')],
39-
null,
39+
'',
4040
'when any of the configured functions have side effects or are overwritten',
4141
);
4242
}

src/Fixer/ConstructorEmptyBracesFixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function __construct(
3636
',
3737
),
3838
],
39+
'',
3940
);
4041
}
4142

src/Fixer/DataProviderNameFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function dataProvider() {}
5757
',
5858
),
5959
],
60-
null,
60+
'',
6161
'when relying on name of data provider function',
6262
);
6363
}

src/Fixer/DataProviderReturnTypeFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function provideSomethingCases(): array {}
4040
',
4141
),
4242
],
43-
null,
43+
'',
4444
'when relying on signature of data provider',
4545
);
4646
}

src/Fixer/DataProviderStaticFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function provideSomethingCases() {}
5252
',
5353
),
5454
],
55-
null,
55+
'',
5656
'when `force` is set to `true`',
5757
);
5858
}

src/Fixer/DeclareAfterOpeningTagFixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public function getDefinition(): FixerDefinitionInterface
2626
return new FixerDefinition(
2727
'Declare statement for strict types must be placed in the same line, after opening tag.',
2828
[new CodeSample("<?php\n\$foo;\ndeclare(strict_types=1);\n\$bar;\n")],
29+
'',
2930
);
3031
}
3132

src/Fixer/EmptyFunctionBodyFixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function getDefinition(): FixerDefinitionInterface
2828
{
2929
}
3030
')],
31+
'',
3132
);
3233
}
3334

src/Fixer/InternalClassCasingFixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function getDefinition(): FixerDefinitionInterface
3636
return new FixerDefinition(
3737
'Classes defined internally by extension or core must be referenced with the correct case.',
3838
[new CodeSample("<?php\n\$foo = new STDClass();\n")],
39+
'',
3940
);
4041
}
4142

src/Fixer/IssetToArrayKeyExistsFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function getDefinition(): FixerDefinitionInterface
3333
',
3434
),
3535
],
36-
null,
36+
'',
3737
'when array is not defined, is multi-dimensional or behaviour is relying on the null value',
3838
);
3939
}

0 commit comments

Comments
 (0)