swagger-php/tools/src/CSFixer/AbstractFixer.php

29 lines
501 B
PHP

<?php declare(strict_types=1);
/**
* @license Apache 2.0
*/
namespace OpenApi\Tools\CSFixer;
use PhpCsFixer\Fixer\FixerInterface;
use PhpCsFixer\Tokenizer\Tokens;
abstract class AbstractFixer implements FixerInterface
{
public function isCandidate(Tokens $tokens): bool
{
return true;
}
public function isRisky(): bool
{
return false;
}
public function supports(\SplFileInfo $file): bool
{
return $file->getExtension() == 'php';
}
}