| 1 | <?php |
||
| 10 | class PortController extends Controller |
||
| 11 | { |
||
| 12 | use Helpers; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Display a listing of the resource. |
||
| 16 | * |
||
| 17 | * @return \Illuminate\Http\Response |
||
|
|
|||
| 18 | */ |
||
| 19 | public function index() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Display the specified resource. |
||
| 29 | * |
||
| 30 | * @param int $id |
||
| 31 | * @return \Illuminate\Http\Response |
||
| 32 | */ |
||
| 33 | public function show($id) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Show the form for editing the specified resource. |
||
| 40 | * |
||
| 41 | * @param int $id |
||
| 42 | * @return \Illuminate\Http\Response |
||
| 43 | */ |
||
| 44 | public function edit($id) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Update the specified resource in storage. |
||
| 51 | * |
||
| 52 | * @param \Illuminate\Http\Request $request |
||
| 53 | * @param int $id |
||
| 54 | * @return \Illuminate\Http\Response |
||
| 55 | */ |
||
| 56 | public function update(Request $request, $id) |
||
| 60 | } |
||
| 61 |
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.