| Conditions | 4 |
| Paths | 4 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4.0218 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 1 | public function process(ContainerBuilder $container) |
|
| 14 | { |
||
| 15 | $expectedValues = [ |
||
| 16 | 1 | 'kunstmaan_user_management.menu.adaptor.class' => \Kunstmaan\UserManagementBundle\Helper\Menu\UserManagementMenuAdaptor::class, |
|
| 17 | ]; |
||
| 18 | |||
| 19 | 1 | foreach ($expectedValues as $parameter => $expectedValue) { |
|
| 20 | 1 | if (false === $container->hasParameter($parameter)) { |
|
| 21 | continue; |
||
| 22 | } |
||
| 23 | |||
| 24 | 1 | $currentValue = $container->getParameter($parameter); |
|
| 25 | 1 | if ($currentValue !== $expectedValue) { |
|
| 26 | 1 | @trigger_error(sprintf('Using the "%s" parameter to change the class of the service definition is deprecated in KunstmaanUserManagementBundle 5.2 and will be removed in KunstmaanUserManagementBundle 6.0. Use service decoration or a service alias instead.', $parameter), E_USER_DEPRECATED); |
|
|
|
|||
| 27 | } |
||
| 28 | } |
||
| 29 | 1 | } |
|
| 30 | } |
||
| 31 |
If you suppress an error, we recommend checking for the error condition explicitly: