| 1 | <?php |
||
| 10 | final class Client implements ResourceFetcher |
||
| 11 | { |
||
| 12 | /** @var HttpClient */ |
||
| 13 | private $httpClient; |
||
| 14 | |||
| 15 | /** @var Processor[] */ |
||
| 16 | private $processors; |
||
| 17 | |||
| 18 | /** @return self */ |
||
| 19 | public static function create() |
||
| 23 | |||
| 24 | /** @param Processor[] $processors */ |
||
| 25 | public function __construct(HttpClient $httpClient, array $processors) |
||
| 35 | |||
| 36 | public function get($url) |
||
| 51 | } |
||
| 52 |
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.