| 1 | <?php |
||
| 12 | class ServicesContainerFactory |
||
| 13 | { |
||
| 14 | 60 | public function __invoke() |
|
| 15 | { |
||
| 16 | 60 | $configFile = require __DIR__.'/../../../config/config.php'; |
|
|
|
|||
| 17 | 60 | $servicesContainer = new ServicesContainer($configFile); |
|
| 18 | |||
| 19 | 60 | return $servicesContainer; |
|
| 20 | } |
||
| 21 | |||
| 22 | 60 | public static function createNewServiceMatcher() |
|
| 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.