Skip to content

Commit

Permalink
merged branch Seldaek/patch-1 (PR PHP-CS-Fixer#90)
Browse files Browse the repository at this point in the history
Commits
-------

703f0e7 Make EOF LineFeed run last

Discussion
----------

Make EOF LineFeed run last

In some occurences with the current code you have to run the fixer twice to get rid of all errors, I think because of the deleted ?> or something along those lines. Anyway this fixes it.
  • Loading branch information
fabpot committed Jun 21, 2012
2 parents 5c23cd6 + 703f0e7 commit 4441f8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Symfony/CS/Fixer/EndOfFileLineFeedFixer.php
Expand Up @@ -38,7 +38,8 @@ public function getLevel()

public function getPriority()
{
return 0;
// must run last to be sure the file is properly formatted before it runs
return -50;
}

public function supports(\SplFileInfo $file)
Expand Down

0 comments on commit 4441f8c

Please sign in to comment.