| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3.0987 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 1 | public function process(ContainerBuilder $container) |
|
| 18 | { |
||
| 19 | 1 | if (false === $container->has('psysh.shell')) { |
|
| 20 | return; |
||
| 21 | } |
||
| 22 | |||
| 23 | 1 | $services = $container->findTaggedServiceIds('psysh.matcher', true); |
|
| 24 | 1 | if (empty($services)) { |
|
| 25 | return; |
||
| 26 | } |
||
| 27 | |||
| 28 | 1 | $container->getDefinition('psysh.config') |
|
| 29 | 1 | ->addMethodCall('addTabCompletionMatchers', [$this->matchers($services)]); |
|
| 30 | 1 | } |
|
| 31 | |||
| 42 |