Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3.072 |
Changes | 0 |
1 | <?php |
||
33 | 1 | protected function addOns(Pug $pug, ContainerInterface $container, array $config) |
|
34 | { |
||
35 | 1 | foreach (self::AVAILABLE_ADD_ONS as $method => $type) { |
|
36 | 1 | array_walk($config[$type], function ($callable, $name) use ($method, $pug, $container) { |
|
37 | $pug->{$method}($name, is_callable($callable) ? $callable : $container->get($callable)); |
||
38 | 1 | }); |
|
39 | } |
||
40 | } |
||
41 | } |
||
42 |