Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
20 | public function load(array $configs, ContainerBuilder $container) |
||
21 | { |
||
22 | $configuration = new Configuration(); |
||
23 | $config = $this->processConfiguration($configuration, $configs); |
||
|
|||
24 | |||
25 | $container->setParameter('polidog_ssr.bundle_src_path', $config['bundle_src_path']); |
||
26 | $container->setParameter('polidog_ssr.baracoa.object', $config['baracoa']['object']); |
||
27 | $container->setParameter('polidog_ssr.baracoa.cache_object', $config['baracoa']['cache_object']); |
||
28 | |||
29 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
30 | $loader->load('services.yml'); |
||
31 | } |
||
32 | } |
||
33 |
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.