| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 2 | protected function processContext( |
|
| 18 | $contextId, |
||
| 19 | array &$context, |
||
| 20 | ContainerBuilder $container |
||
| 21 | ) { |
||
| 22 | 2 | foreach ($context['builders'] as &$builder) { |
|
| 23 | 2 | $definitionName = $this->processCriteriaBuilder($contextId, $builder, $container); |
|
| 24 | |||
| 25 | $criteriaCollection = $this |
||
| 26 | 2 | ->buildServiceName($contextId, self::BUILDER_COLLECTION_PARAMETER); |
|
| 27 | $container |
||
| 28 | 2 | ->getDefinition($criteriaCollection) |
|
| 29 | 2 | ->addMethodCall( |
|
| 30 | 2 | 'addCriteriaBuilder', |
|
| 31 | 2 | [new Reference($definitionName)] |
|
| 32 | ); |
||
| 33 | } |
||
| 34 | 2 | } |
|
| 35 | |||
| 60 |