| Conditions | 6 |
| Paths | 4 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | 2 | public function process(ContainerBuilder $container) |
|
| 11 | { |
||
| 12 | // if there are no metadata, then we are in debug mode, no need to clean up the container |
||
| 13 | 2 | if (!$container->getParameter('goetas_webservices.soap_client.metadata')) { |
|
| 14 | 2 | return; |
|
| 15 | } |
||
| 16 | 1 | foreach ($container->getDefinitions() as $id => $definition) { |
|
| 17 | 1 | if (strpos($id, 'goetas_webservices.soap_client.metadata_loader.array') === false && !$definition->isSynthetic() && $definition->isPublic()) { |
|
| 18 | 1 | $definition->setPublic(false); |
|
| 19 | 1 | } |
|
| 20 | 1 | } |
|
| 21 | 1 | } |
|
| 22 | } |
||
| 23 |