| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1.037 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 84 | 1 | public function withOutput($output): PayloadContract |
|
| 85 | { |
||
| 86 | 1 | $payload = clone $this; |
|
|
1 ignored issue
–
show
|
|||
| 87 | 1 | $payload->output = $output; |
|
| 88 | |||
| 89 | 1 | return $payload; |
|
| 90 | } |
||
| 91 | |||
| 93 | } |
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.