| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function load(array $configs, ContainerBuilder $container) |
||
| 19 | { |
||
| 20 | $fileLocator = new FileLocator(APPLICATION_ROOT); |
||
| 21 | $loader = new DirectoryLoader($container, $fileLocator); |
||
|
|
|||
| 22 | $loader->setResolver(new LoaderResolver([ |
||
| 23 | new XmlFileLoader($container, $fileLocator), |
||
| 24 | $loader, |
||
| 25 | ])); |
||
| 26 | $loader->load('./resources/services/'); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |
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.