1 | <?php |
||
5 | final class ConfigureContainer |
||
6 | { |
||
7 | /** |
||
8 | * @api |
||
9 | * |
||
10 | * @param object $container |
||
11 | * @param array $patterns |
||
12 | * @param array $settings |
||
13 | * |
||
14 | * @return void |
||
15 | */ |
||
16 | public static function fromFiles($container, array $patterns, $settings = []) |
||
22 | |||
23 | /** |
||
24 | * @api |
||
25 | * |
||
26 | * @param object $container |
||
27 | * @param array $config |
||
28 | * @param array $settings |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | public static function fromArray($container, array $config, $settings = []) |
||
38 | |||
39 | /** |
||
40 | * @param array $settings |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | private static function prepareSettings(array $settings) |
||
57 | |||
58 | private static function configureContainer($container, ApplicationConfig $appConfig, array $settings) |
||
79 | } |
||
80 |
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.