| Conditions | 4 |
| Paths | 3 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 4.25 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | 1 | private function addOns(Pug $pug, ContainerInterface $container, PugConfig $config): void |
|
| 35 | { |
||
| 36 | 1 | foreach (self::AVAILABLE_ADD_ONS as $method => $type) { |
|
| 37 | 1 | foreach ($config->get($type) as $name => $callable) { |
|
| 38 | $pug->{$method}($name, is_callable($callable) ? $callable : $container->get($callable)); |
||
| 39 | } |
||
| 43 |