Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function findAllFixers() : array |
||
20 | { |
||
21 | $phpCsFixerReflection = new ReflectionClass(Fixer::class); |
||
22 | $directoryWithFixers = dirname($phpCsFixerReflection->getFileName()) . '/Fixer'; |
||
23 | |||
24 | $finder = Finder::create() |
||
25 | ->files() |
||
26 | ->in($directoryWithFixers); |
||
27 | |||
28 | return iterator_to_array($finder); |
||
29 | } |
||
30 | } |
||
31 |