| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 14 | public static function resolve(ContainerInterface $container, $definition) |
|
| 34 | { |
||
| 35 | 14 | if ($definition instanceof DefinitionInterface) { |
|
| 36 | 14 | $definition = $definition->resolve($container); |
|
| 37 | 2 | } elseif (is_array($definition)) { |
|
| 38 | 2 | return self::resolveArray($container, $definition); |
|
| 39 | } |
||
| 40 | |||
| 41 | 12 | return $definition; |
|
| 42 | } |
||
| 56 |