| Conditions | 3 |
| Paths | 4 |
| Total Lines | 22 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 20 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 220 | public function process(ContainerBuilder $container) |
|
| 26 | { |
||
| 27 | 220 | if ($container->hasParameter($parameter = 'templating.helper.form.resources')) { |
|
| 28 | 10 | $container->setParameter( |
|
| 29 | 10 | $parameter, |
|
| 30 | 10 | array_merge( |
|
| 31 | 10 | ['IvoryCKEditorBundle:Form'], |
|
| 32 | 10 | $container->getParameter($parameter) |
|
| 33 | 8 | ) |
|
| 34 | 8 | ); |
|
| 35 | 8 | } |
|
| 36 | |||
| 37 | 220 | if ($container->hasParameter($parameter = 'twig.form.resources')) { |
|
| 38 | 10 | $container->setParameter( |
|
| 39 | 10 | $parameter, |
|
| 40 | 10 | array_merge( |
|
| 41 | 10 | ['@IvoryCKEditor/Form/ckeditor_widget.html.twig'], |
|
| 42 | 10 | $container->getParameter($parameter) |
|
| 43 | 8 | ) |
|
| 44 | 8 | ); |
|
| 45 | 8 | } |
|
| 46 | 220 | } |
|
| 47 | } |
||
| 48 |