Add Attribute Spacing sniff
This commit is contained in:
parent
b470778d3f
commit
27f6d414bf
1 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,7 @@ use PhpCsFixer\Fixer\Operator\NewWithBracesFixer;
|
|||
use PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer;
|
||||
use PhpCsFixer\Fixer\Whitespace\NoExtraBlankLinesFixer;
|
||||
use PhpCsFixer\Fixer\Whitespace\NoWhitespaceInBlankLineFixer;
|
||||
use SlevomatCodingStandard\Sniffs\Attributes\AttributeAndTargetSpacingSniff;
|
||||
use SlevomatCodingStandard\Sniffs\Classes\ClassConstantVisibilitySniff;
|
||||
use SlevomatCodingStandard\Sniffs\ControlStructures\NewWithoutParenthesesSniff;
|
||||
use SlevomatCodingStandard\Sniffs\Namespaces\AlphabeticallySortedUsesSniff;
|
||||
|
@ -110,4 +111,9 @@ return static function (ECSConfig $c): void {
|
|||
);
|
||||
|
||||
$c->rule(NoWhitespaceInBlankLineFixer::class);
|
||||
|
||||
// make sure that the attribute target is on the line after the attribute
|
||||
$c->ruleWithConfiguration(AttributeAndTargetSpacingSniff::class, [
|
||||
'linesCount' => 0,
|
||||
]);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue