Skip to content

Commit

Permalink
remove SF exception
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacePossum committed May 11, 2018
1 parent e77be7f commit f346221
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/Fixer/Import/NoUnusedImportsFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,26 +56,6 @@ public function isCandidate(Tokens $tokens)
return $tokens->isTokenKindFound(T_USE);
}

/**
* {@inheritdoc}
*/
public function supports(\SplFileInfo $file)
{
$path = $file->getPathname();

/*
* @deprecated this exception will be removed on 3.0
* some fixtures are auto-generated by Symfony and may contain unused use statements
*/
if (false !== strpos($path, DIRECTORY_SEPARATOR.'Fixtures'.DIRECTORY_SEPARATOR)
&& false === strpos($path, DIRECTORY_SEPARATOR.'tests'.DIRECTORY_SEPARATOR.'Fixtures'.DIRECTORY_SEPARATOR)
) {
return false;
}

return true;
}

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

0 comments on commit f346221

Please sign in to comment.