| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function __construct(HttpClient $httpClient, array $processors) |
||
| 26 | { |
||
| 27 | Assertion::allIsInstanceOf($processors, Processor::class); |
||
| 28 | |||
| 29 | $this->httpClient = $httpClient; |
||
| 30 | |||
| 31 | foreach ($processors as $processor) { |
||
| 32 | $this->processors[$processor->getContentType()] = $processor; |
||
| 33 | } |
||
| 34 | } |
||
| 35 | |||
| 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.