1 | <?php |
||
7 | class CourseController extends Controller |
||
8 | { |
||
9 | /** |
||
10 | * Display a listing of the resource. |
||
11 | * |
||
12 | * @return \Illuminate\Http\Response |
||
13 | */ |
||
14 | public function index() |
||
18 | /** |
||
19 | * Store a newly created resource in storage. |
||
20 | * |
||
21 | * @param \Illuminate\Http\Request $request |
||
22 | * @return \Illuminate\Http\Response |
||
23 | */ |
||
24 | public function store() |
||
29 | /** |
||
30 | * Display the specified resource. |
||
31 | * |
||
32 | * @param int $id |
||
33 | * @return \Illuminate\Http\Response |
||
34 | */ |
||
35 | public function show($id) |
||
41 | /** |
||
42 | * Update the specified resource in storage. |
||
43 | * |
||
44 | * @param \Illuminate\Http\Request $request |
||
45 | * @param int $id |
||
46 | * @return \Illuminate\Http\Response |
||
47 | */ |
||
48 | public function update($id, Request $request) |
||
57 | /** |
||
58 | * Remove the specified resource from storage. |
||
59 | * |
||
60 | * @param int $id |
||
61 | * @return \Illuminate\Http\Response |
||
62 | */ |
||
63 | public function destroy($id) |
||
68 | } |
||
69 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.