1 | <?php |
||
14 | class ContactsController extends AuthorizedController |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | protected $resource = 'contacts'; |
||
20 | |||
21 | /** |
||
22 | * Display a listing of the resource. |
||
23 | * |
||
24 | * @param \Cortex\Contacts\DataTables\Managerarea\ContactsDataTable $contactsDataTable |
||
25 | * |
||
26 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
27 | */ |
||
28 | public function index(ContactsDataTable $contactsDataTable) |
||
35 | |||
36 | /** |
||
37 | * Display a listing of the resource logs. |
||
38 | * |
||
39 | * @param \Rinvex\Contacts\Contracts\ContactContract $category |
||
|
|||
40 | * @param \Cortex\Foundation\DataTables\LogsDataTable $logsDataTable |
||
41 | * |
||
42 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
43 | */ |
||
44 | public function logs(ContactContract $contact, LogsDataTable $logsDataTable) |
||
54 | |||
55 | /** |
||
56 | * Store a newly created resource in storage. |
||
57 | * |
||
58 | * @param \Cortex\Contacts\Http\Requests\Managerarea\ContactFormRequest $request |
||
59 | * |
||
60 | * @return \Illuminate\Http\Response |
||
61 | */ |
||
62 | public function store(ContactFormRequest $request) |
||
66 | |||
67 | /** |
||
68 | * Update the given resource in storage. |
||
69 | * |
||
70 | * @param \Cortex\Contacts\Http\Requests\Managerarea\ContactFormRequest $request |
||
71 | * @param \Rinvex\Contacts\Contracts\ContactContract $contact |
||
72 | * |
||
73 | * @return \Illuminate\Http\Response |
||
74 | */ |
||
75 | public function update(ContactFormRequest $request, ContactContract $contact) |
||
79 | |||
80 | /** |
||
81 | * Delete the given resource from storage. |
||
82 | * |
||
83 | * @param \Rinvex\Contacts\Contracts\ContactContract $contact |
||
84 | * |
||
85 | * @return \Illuminate\Http\Response |
||
86 | */ |
||
87 | public function delete(ContactContract $contact) |
||
96 | |||
97 | /** |
||
98 | * Show the form for create/update of the given resource. |
||
99 | * |
||
100 | * @param \Rinvex\Contacts\Contracts\ContactContract $contact |
||
101 | * |
||
102 | * @return \Illuminate\Http\Response |
||
103 | */ |
||
104 | public function form(ContactContract $contact) |
||
114 | |||
115 | /** |
||
116 | * Process the form for store/update of the given resource. |
||
117 | * |
||
118 | * @param \Illuminate\Http\Request $request |
||
119 | * @param \Rinvex\Contacts\Contracts\ContactContract $contact |
||
120 | * |
||
121 | * @return \Illuminate\Http\Response |
||
122 | */ |
||
123 | protected function process(Request $request, ContactContract $contact) |
||
136 | } |
||
137 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.