Skip to content
Permalink
Browse files

Merge pull request #144 from kubawerlos/fix-annotations

Remove useless annotations
  • Loading branch information...
kubawerlos committed Sep 29, 2019
2 parents 3e488d3 + 170c925 commit 8e4ce2b775dc13c94c567ab3a4e8ca48fc43d3dd
Showing with 0 additions and 3 deletions.
  1. +0 −2 src/Fixer/PhpUnitNoUselessReturnFixer.php
  2. +0 −1 src/Fixer/SingleLineThrowFixer.php
@@ -90,7 +90,6 @@ private function removeUselessReturns(Tokens $tokens, int $startIndex, int $endI
continue;
}
/** @var int $closingBraceIndex */
$closingBraceIndex = $tokens->findBlockEnd(Tokens::BLOCK_TYPE_PARENTHESIS_BRACE, $openingBraceIndex);
/** @var int $semicolonIndex */
@@ -109,7 +108,6 @@ private function removeUselessReturns(Tokens $tokens, int $startIndex, int $endI
$semicolonAfterReturnIndex = $tokens->getNextTokenOfKind($returnIndex, [';', '(']);
while ($tokens[$semicolonAfterReturnIndex]->equals('(')) {
/** @var int $closingBraceIndex */
$closingBraceIndex = $tokens->findBlockEnd(Tokens::BLOCK_TYPE_PARENTHESIS_BRACE, $semicolonAfterReturnIndex);
/** @var int $semicolonAfterReturnIndex */
$semicolonAfterReturnIndex = $tokens->getNextTokenOfKind($closingBraceIndex, [';', '(']);
@@ -52,7 +52,6 @@ public function fix(\SplFileInfo $file, Tokens $tokens): void
$openingBraceCandidateIndex = $tokens->getNextTokenOfKind($index, [';', '(']);
while ($tokens[$openingBraceCandidateIndex]->equals('(')) {
/** @var int $closingBraceIndex */
$closingBraceIndex = $tokens->findBlockEnd(Tokens::BLOCK_TYPE_PARENTHESIS_BRACE, $openingBraceCandidateIndex);
/** @var int $openingBraceCandidateIndex */
$openingBraceCandidateIndex = $tokens->getNextTokenOfKind($closingBraceIndex, [';', '(']);

0 comments on commit 8e4ce2b

Please sign in to comment.
You can’t perform that action at this time.