1 | <?php |
||
13 | class NewsController extends Controller |
||
14 | { |
||
15 | /** |
||
16 | * Display a listing of the resource. |
||
17 | * |
||
18 | * @return \Illuminate\Http\Response |
||
|
|||
19 | */ |
||
20 | public function index() |
||
42 | |||
43 | /** |
||
44 | * Show the form for creating a new resource. |
||
45 | * |
||
46 | * @return \Illuminate\Http\Response |
||
47 | */ |
||
48 | public function create() |
||
54 | |||
55 | /** |
||
56 | * Store a newly created resource in storage. |
||
57 | * |
||
58 | * @param \Illuminate\Http\Request $request |
||
59 | * |
||
60 | * @return \Illuminate\Http\Response |
||
61 | */ |
||
62 | public function store(Request $request) |
||
84 | |||
85 | /** |
||
86 | * Display the specified resource. |
||
87 | * |
||
88 | * @param int $id |
||
89 | * |
||
90 | * @return \Illuminate\Http\Response |
||
91 | */ |
||
92 | public function show($id) |
||
100 | |||
101 | /** |
||
102 | * Show the form for editing the specified resource. |
||
103 | * |
||
104 | * @param int $id |
||
105 | * |
||
106 | * @return \Illuminate\Http\Response |
||
107 | */ |
||
108 | public function edit($id) |
||
124 | |||
125 | /** |
||
126 | * Update the specified resource in storage. |
||
127 | * |
||
128 | * @param \Illuminate\Http\Request $request |
||
129 | * @param int $id |
||
130 | * |
||
131 | * @return \Illuminate\Http\Response |
||
132 | */ |
||
133 | public function update(Request $request, $id) |
||
153 | |||
154 | /** |
||
155 | * Remove the specified resource from storage. |
||
156 | * |
||
157 | * @param int $id |
||
158 | * |
||
159 | * @return \Illuminate\Http\Response |
||
160 | */ |
||
161 | public function destroy($id) |
||
170 | |||
171 | public function approve($id, $approve) |
||
181 | } |
||
182 |
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.