| 1 | <?php |
||
| 7 | class ModuleEvent extends Event { |
||
| 8 | |||
| 9 | const INSTALLED = 'core.module.installed'; |
||
|
|
|||
| 10 | const UNINSTALLED = 'core.module.uninstalled'; |
||
| 11 | const UPDATED = 'core.module.updated'; |
||
| 12 | const ACTIVATED = 'core.module.activated'; |
||
| 13 | const DEACTIVATED = 'core.module.deactivated'; |
||
| 14 | |||
| 15 | /** @var Module */ |
||
| 16 | private $module; |
||
| 17 | |||
| 18 | public function __construct(Module $module) { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return Module |
||
| 24 | */ |
||
| 25 | public function getModule() { |
||
| 28 | } |
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.