| Conditions | 1 |
| Paths | 1 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| 1 | <?php |
||
| 52 | public function show(Request $request, $id) |
||
|
1 ignored issue
–
show
|
|||
| 53 | { |
||
| 54 | $widget = Widgets::find($id); |
||
| 55 | return $widget; |
||
| 56 | } |
||
| 57 | |||
| 93 |
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.