1 | <?php |
||
12 | class DeveloperController extends Controller |
||
13 | { |
||
14 | /** |
||
15 | * Display a listing of the resource. |
||
16 | * |
||
17 | * @return \Illuminate\Http\Response |
||
|
|||
18 | */ |
||
19 | public function index($orderby = 'devname', $direction = 'asc') |
||
40 | |||
41 | /** |
||
42 | * Display the specified resource. |
||
43 | * |
||
44 | * @param int $id |
||
45 | * |
||
46 | * @return \Illuminate\Http\Response |
||
47 | */ |
||
48 | public function show($id, $orderby = 'title', $direction = 'asc') |
||
66 | } |
||
67 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.