| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 13 | public function load(array $configs, ContainerBuilder $container) |
|
| 21 | { |
||
| 22 | 13 | $configuration = new Configuration(); |
|
| 23 | 13 | $config = $this->processConfiguration($configuration, $configs); |
|
|
|
|||
| 24 | |||
| 25 | 13 | $container->setParameter('testroutes', $config['testroutes']); |
|
| 26 | 13 | $container->setParameter('testdb', $config['testdb']); |
|
| 27 | |||
| 28 | 13 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 29 | 13 | $loader->load('services.yml'); |
|
| 30 | 13 | } |
|
| 32 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.