Skip to content

Commit

Permalink
Fix a year's worth of conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
dmvdbrugge committed Oct 10, 2019
1 parent 1677a11 commit 63c3500
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/AbstractNoUselessElseFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ abstract class AbstractNoUselessElseFixer extends AbstractFixer
public function getPriority()
{
// should be run before NoWhitespaceInBlankLineFixer, NoExtraBlankLinesFixer, BracesFixer and after NoEmptyStatementFixer.
return 34;
return 35;
}

/**
Expand Down
5 changes: 3 additions & 2 deletions src/Fixer/Basic/BracesFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ public function bar($baz)
*/
public function getPriority()
{
// should be run after the ElseIfFixer, LineEndingFixer, NoEmptyStatementFixer and NoUselessElseFixer
return 33;
// should be run after ElseIfFixer, LineEndingFixer, NoEmptyStatementFixer, NoUselessElseFixer, SingleTraitInsertPerStatementFixer
// should be run before MethodChainingIndentationFixer
return 34;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ final class Example

public function getPriority()
{
// must be run before Braces and SpaceAfterSemicolonFixer
return 1;
// should be run before Braces, SpaceAfterSemicolonFixer
return 35;
}

public function isCandidate(Tokens $tokens)
Expand Down
2 changes: 1 addition & 1 deletion src/Fixer/ControlStructure/ElseifFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function getPriority()
{
// Should run after NoAlternativeSyntaxFixer
// Should run before BracesFixer
return 34;
return 35;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Fixer/ControlStructure/NoAlternativeSyntaxFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function isCandidate(Tokens $tokens)
public function getPriority()
{
// Should run before BracesFixer and ElseifFixer
return 35;
return 36;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Fixer/ControlStructure/NoUnneededCurlyBracesFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getDefinition()
public function getPriority()
{
// must be run before NoUselessElseFixer and NoUselessReturnFixer.
return 35;
return 36;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Fixer/Semicolon/NoEmptyStatementFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function getPriority()
{
// should be run before the BracesFixer, CombineConsecutiveUnsetsFixer, NoExtraBlankLinesFixer, MultilineWhitespaceBeforeSemicolonsFixer, NoSinglelineWhitespaceBeforeSemicolonsFixer,
// NoTrailingCommaInListCallFixer, NoUselessReturnFixer, NoWhitespaceInBlankLineFixer, SpaceAfterSemicolonFixer, SwitchCaseSemicolonToColonFixer.
return 35;
return 36;
}

/**
Expand Down
3 changes: 2 additions & 1 deletion src/Fixer/Semicolon/SpaceAfterSemicolonFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public function getDefinition()
*/
public function getPriority()
{
return -1; // Must run after MultilineWhitespaceBeforeSemicolonsFixer
// should be run after MultilineWhitespaceBeforeSemicolonsFixer, SingleTraitInsertPerStatementFixer
return -1;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Fixer/Whitespace/LineEndingFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getDefinition()
public function getPriority()
{
// Should run before BracesFixer
return 34;
return 35;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Fixer/Whitespace/MethodChainingIndentationFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function getPriority()
{
// Should run after BracesFixer
// Should run before ArrayIndentationFixer
return -29;
return 33;
}

/**
Expand Down

0 comments on commit 63c3500

Please sign in to comment.