| 1 | <?php |
||
| 9 | class WidgetController extends Controller |
||
| 10 | { |
||
| 11 | 2 | public function __construct() { |
|
| 14 | |||
| 15 | /** |
||
| 16 | * Display a listing of all widgets |
||
| 17 | * |
||
| 18 | * @return \Illuminate\Http\Response |
||
|
|
|||
| 19 | */ |
||
| 20 | 2 | public function index(Request $request) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Show the form for creating a new resource. |
||
| 28 | * |
||
| 29 | * @return \Illuminate\Http\Response |
||
| 30 | */ |
||
| 31 | public function create() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Store a newly created resource in storage. |
||
| 38 | * |
||
| 39 | * @param \Illuminate\Http\Request $request |
||
| 40 | * @return \Illuminate\Http\Response |
||
| 41 | */ |
||
| 42 | public function store(Request $request) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Display the specified resource. |
||
| 49 | * |
||
| 50 | * @param int $id |
||
| 51 | * @return \Illuminate\Http\Response |
||
| 52 | */ |
||
| 53 | public function show(Request $request, $id) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Show the form for editing the specified resource. |
||
| 60 | * |
||
| 61 | * @param int $id |
||
| 62 | * @return \Illuminate\Http\Response |
||
| 63 | */ |
||
| 64 | public function edit($id) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Update the specified resource in storage. |
||
| 71 | * |
||
| 72 | * @param \Illuminate\Http\Request $request |
||
| 73 | * @param int $id |
||
| 74 | * @return \Illuminate\Http\Response |
||
| 75 | */ |
||
| 76 | public function update(Request $request, $id) |
||
| 80 | |||
| 81 | /** |
||
| 82 | * Remove the specified resource from storage. |
||
| 83 | * |
||
| 84 | * @param int $id |
||
| 85 | * @return \Illuminate\Http\Response |
||
| 86 | */ |
||
| 87 | public function destroy($id) |
||
| 91 | |||
| 92 | } |
||
| 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.