Adjust priority for LineBreakAfterStatementsFixer

This commit is contained in:
erickskrauch 2018-08-07 11:40:48 +03:00
parent 824cf6c1f1
commit 2480f7ba46
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -86,6 +86,14 @@ class Foo
return $tokens->isAnyTokenKindsFound(self::STATEMENTS);
}
/**
* {@inheritdoc}
*/
public function getPriority() {
// for the best result should be run after the BracesFixer
return -26;
}
protected function applyFix(SplFileInfo $file, Tokens $tokens) {
foreach ($tokens as $index => $token) {
if (!$token->isGivenKind(self::STATEMENTS)) {