| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 8 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | View Code Duplication | public function getField($name) |
|
| 36 | { |
||
| 37 | if (!array_key_exists($name, $this->fields)) { |
||
| 38 | throw new FieldNotFoundException($name); |
||
| 39 | } |
||
| 40 | |||
| 41 | return $this->fields[$name]; |
||
| 42 | } |
||
| 43 | |||
| 60 |
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.