| 1 | <?php |
||
| 13 | class CommitController extends Controller |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Display a listing of the resource. |
||
| 17 | * |
||
| 18 | * @return \Illuminate\Http\Response |
||
|
|
|||
| 19 | */ |
||
| 20 | public function index() |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Show the form for creating a new resource. |
||
| 26 | * |
||
| 27 | * @return \Illuminate\Http\Response |
||
| 28 | */ |
||
| 29 | public function create() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Store a newly created resource in storage. |
||
| 35 | * |
||
| 36 | * @param \Illuminate\Http\Request $request |
||
| 37 | * |
||
| 38 | * @return \Illuminate\Http\Response |
||
| 39 | */ |
||
| 40 | public function store(Request $request) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Display the specified resource. |
||
| 46 | * |
||
| 47 | * @param int $id |
||
| 48 | * |
||
| 49 | * @return \Illuminate\Http\Response |
||
| 50 | */ |
||
| 51 | public function show($id) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Show the form for editing the specified resource. |
||
| 57 | * |
||
| 58 | * @param int $id |
||
| 59 | * |
||
| 60 | * @return \Illuminate\Http\Response |
||
| 61 | */ |
||
| 62 | public function edit($id) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Update the specified resource in storage. |
||
| 68 | * |
||
| 69 | * @param \Illuminate\Http\Request $request |
||
| 70 | * @param int $id |
||
| 71 | * |
||
| 72 | * @return \Illuminate\Http\Response |
||
| 73 | */ |
||
| 74 | public function update(Request $request, $id) |
||
| 77 | |||
| 78 | /** |
||
| 79 | * Remove the specified resource from storage. |
||
| 80 | * |
||
| 81 | * @param int $id |
||
| 82 | * |
||
| 83 | * @return \Illuminate\Http\Response |
||
| 84 | */ |
||
| 85 | public function destroy($id) |
||
| 88 | } |
||
| 89 |
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.