Skip to content

Commit

Permalink
Dont wait on PHP-CS-Fixer#4085 just specify priority
Browse files Browse the repository at this point in the history
Also add comments...
  • Loading branch information
dmvdbrugge committed Jan 7, 2019
1 parent e264070 commit 5ecb25c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Fixer/Basic/BracesFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public function bar($baz)
public function getPriority()
{
// should be run after the ElseIfFixer, NoEmptyStatementFixer and NoUselessElseFixer
// should be run before NoTrailingWhitespaceInCommentFixer
return -25;
}

Expand Down
6 changes: 6 additions & 0 deletions src/Fixer/Comment/NoTrailingWhitespaceInCommentFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ public function getDefinition()
);
}

public function getPriority()
{
// should be run after BracesFixer and PhpdocNoUselessInheritdocFixer
return -30;
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 5ecb25c

Please sign in to comment.