PhpCsFixer\Fixer\Import\NoUnusedImportsFixer::supports PHP Method

supports() public method

public supports ( SplFileInfo $file )
$file SplFileInfo
    public function supports(\SplFileInfo $file)
    {
        $path = $file->getPathname();
        // 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;
    }