|
@@ -17,6 +17,7 @@ use PhpCsFixer\Fixer\ConfigurableFixerInterface;
|
|
|
use PhpCsFixer\Fixer\FixerInterface;
|
|
|
use PhpCsFixer\Fixer\WhitespacesAwareFixerInterface;
|
|
|
use Symfony\Component\Finder\Finder as SymfonyFinder;
|
|
|
+use Symfony\Component\Finder\SplFileInfo;
|
|
|
|
|
|
/**
|
|
|
* Class provides a way to create a group of fixers.
|
|
@@ -94,6 +95,7 @@ final class FixerFactory
|
|
|
if (null === $builtInFixers) {
|
|
|
$builtInFixers = [];
|
|
|
|
|
|
+ /** @var SplFileInfo $file */
|
|
|
foreach (SymfonyFinder::create()->files()->in(__DIR__.'/Fixer') as $file) {
|
|
|
$relativeNamespace = $file->getRelativePath();
|
|
|
$fixerClass = 'PhpCsFixer\\Fixer\\'.($relativeNamespace ? $relativeNamespace.'\\' : '').$file->getBasename('.php');
|