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