| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | 6 | private function parse($contents = []) { |
|
| 35 | 6 | $data = CollectionUtils::toMap($contents); |
|
| 36 | |||
| 37 | 6 | $this->examples = $data->get('examples', new Map()); |
|
| 38 | 6 | $this->headers = new Headers($data->get('headers')); |
|
|
|
|||
| 39 | |||
| 40 | // parts |
||
| 41 | 6 | $this->parseRef($data); |
|
| 42 | 6 | $this->parseDescription($data); |
|
| 43 | 6 | $this->parseSchema($data); |
|
| 44 | 6 | $this->parseExtensions($data); |
|
| 45 | 6 | } |
|
| 46 | |||
| 77 | } |
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.