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); |
||
70 | 1 | public function withInput(array $arguments): PayloadContract |
|
71 | { |
||
72 | 1 | $payload = clone $this; |
|
1 ignored issue
–
show
|
|||
73 | 1 | $payload->input = $arguments; |
|
74 | |||
75 | 1 | return $payload; |
|
76 | } |
||
77 | |||
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.