for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of Symplify
* Copyright (c) 2016 Tomas Votruba (http://tomasvotruba.cz).
*/
namespace Symplify\MultiCodingStandard\PhpCsFixer\FileSystem;
use ReflectionClass;
use Symfony\Component\Finder\Finder;
use Symfony\CS\Fixer;
use Symplify\MultiCodingStandard\Contract\PhpCsFixer\FileSystem\FixerFileSystemInterface;
final class FixerFileSystem implements FixerFileSystemInterface
{
/**
* {@inheritdoc}
public function findAllFixers()
$phpCsFixerReflection = new ReflectionClass(Fixer::class);
$directoryWithFixers = dirname($phpCsFixerReflection->getFileName()) . '/Fixer';
$finder = Finder::create()
->files()
->in($directoryWithFixers);
return iterator_to_array($finder);
}