| 1 | <?php |
||
| 7 | class KernelTargetEvent extends Event { |
||
| 8 | |||
| 9 | const BEFORE_RUN = 'core.kernel.before_run'; |
||
| 10 | const AFTER_RUN = 'core.kernel.after_run'; |
||
|
|
|||
| 11 | |||
| 12 | /** @var KernelInterface */ |
||
| 13 | private $target; |
||
| 14 | |||
| 15 | public function __construct(KernelTargetInterface $target) { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Returns the executed target |
||
| 21 | * |
||
| 22 | * @return KernelTargetInterface |
||
| 23 | */ |
||
| 24 | public function getTarget() { |
||
| 27 | } |
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.