| Conditions | 6 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 42 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function link($title, $url = null, array $options = []) |
||
| 31 | { |
||
| 32 | if (isset($url['prefix']) && $url['prefix'] === false) { |
||
| 33 | $url['prefix'] = "false"; |
||
| 34 | } |
||
| 35 | if (is_array($title) && isset($title['prefix']) && $title['prefix'] === false) { |
||
| 36 | $title['prefix'] = "false"; |
||
| 37 | } |
||
| 38 | |||
| 39 | return parent::link($title, $url, $options); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.