| 1 | <?php declare(strict_types=1); | ||
| 7 | class Header | ||
| 8 | { | ||
| 9 | private $parameters; | ||
| 10 | |||
| 11 | private $signature; | ||
| 12 | |||
| 13 | 5 | public function __construct(Parameters $parameters, Signature $signature) | |
| 14 |     { | ||
| 15 | 5 | $this->parameters = $parameters; | |
| 16 | 5 | $this->signature = $signature; | |
| 17 | } | ||
| 18 | |||
| 19 | 5 | public function getHeader(): string | |
| 32 | } | ||
| 33 | 
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.