Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
21 | 2 | public function provideTwigPaths(XerviceLoaderInterface $loader): void |
|
22 | { |
||
23 | 2 | foreach ($this->getFactory()->createPathFinder()->getPaths() as $path) { |
|
24 | 2 | if (is_dir($path . '/Presentation/Theme')) { |
|
25 | 2 | $namespace = basename($path); |
|
26 | 2 | $loader->addPath( |
|
27 | 2 | $path . '/Presentation/Theme', |
|
28 | 2 | $namespace |
|
29 | ); |
||
33 | } |