1 | <?php |
||
19 | class TestimonialsController extends AuthorizedController |
||
20 | { |
||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | protected $resource = Testimonial::class; |
||
25 | |||
26 | /** |
||
27 | * List all testimonials. |
||
28 | * |
||
29 | * @param \Cortex\Testimonials\DataTables\Managerarea\TestimonialsDataTable $testimonialsDataTable |
||
30 | * |
||
31 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
32 | */ |
||
33 | public function index(TestimonialsDataTable $testimonialsDataTable) |
||
39 | |||
40 | /** |
||
41 | * List testimonial logs. |
||
42 | * |
||
43 | * @param \Cortex\Testimonials\Models\Testimonial $testimonial |
||
44 | * @param \Cortex\Foundation\DataTables\LogsDataTable $logsDataTable |
||
45 | * |
||
46 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
|
|||
47 | */ |
||
48 | public function logs(Testimonial $testimonial, LogsDataTable $logsDataTable) |
||
56 | |||
57 | /** |
||
58 | * Import testimonials. |
||
59 | * |
||
60 | * @param \Cortex\Testimonials\Models\Testimonial $testimonial |
||
61 | * @param \Cortex\Foundation\DataTables\ImportRecordsDataTable $importRecordsDataTable |
||
62 | * |
||
63 | * @return \Illuminate\View\View |
||
64 | */ |
||
65 | public function import(Testimonial $testimonial, ImportRecordsDataTable $importRecordsDataTable) |
||
74 | |||
75 | /** |
||
76 | * Stash testimonials. |
||
77 | * |
||
78 | * @param \Cortex\Foundation\Http\Requests\ImportFormRequest $request |
||
79 | * @param \Cortex\Foundation\Importers\DefaultImporter $importer |
||
80 | * |
||
81 | * @return void |
||
82 | */ |
||
83 | public function stash(ImportFormRequest $request, DefaultImporter $importer) |
||
90 | |||
91 | /** |
||
92 | * Hoard testimonials. |
||
93 | * |
||
94 | * @param \Cortex\Foundation\Http\Requests\ImportFormRequest $request |
||
95 | * |
||
96 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
97 | */ |
||
98 | public function hoard(ImportFormRequest $request) |
||
121 | |||
122 | /** |
||
123 | * List testimonial import logs. |
||
124 | * |
||
125 | * @param \Cortex\Foundation\DataTables\ImportLogsDataTable $importLogsDatatable |
||
126 | * |
||
127 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
128 | */ |
||
129 | public function importLogs(ImportLogsDataTable $importLogsDatatable) |
||
137 | |||
138 | /** |
||
139 | * Show testimonial create/edit form. |
||
140 | * |
||
141 | * @param \Cortex\Testimonials\Models\Testimonial $testimonial |
||
142 | * |
||
143 | * @return \Illuminate\View\View |
||
144 | */ |
||
145 | protected function form(Testimonial $testimonial) |
||
149 | |||
150 | /** |
||
151 | * Store new testimonial. |
||
152 | * |
||
153 | * @param \Cortex\Testimonials\Http\Requests\Managerarea\TestimonialFormRequest $request |
||
154 | * @param \Cortex\Testimonials\Models\Testimonial $testimonial |
||
155 | * |
||
156 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
157 | */ |
||
158 | public function store(TestimonialFormRequest $request, Testimonial $testimonial) |
||
162 | |||
163 | /** |
||
164 | * Update given testimonial. |
||
165 | * |
||
166 | * @param \Cortex\Testimonials\Http\Requests\Managerarea\TestimonialFormRequest $request |
||
167 | * @param \Cortex\Testimonials\Models\Testimonial $testimonial |
||
168 | * |
||
169 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
170 | */ |
||
171 | public function update(TestimonialFormRequest $request, Testimonial $testimonial) |
||
175 | |||
176 | /** |
||
177 | * Process stored/updated testimonial. |
||
178 | * |
||
179 | * @param \Illuminate\Foundation\Http\FormRequest $request |
||
180 | * @param \Cortex\Testimonials\Models\Testimonial $testimonial |
||
181 | * |
||
182 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
183 | */ |
||
184 | protected function process(FormRequest $request, Testimonial $testimonial) |
||
197 | |||
198 | /** |
||
199 | * Destroy given testimonial. |
||
200 | * |
||
201 | * @param \Cortex\Testimonials\Models\Testimonial $testimonial |
||
202 | * |
||
203 | * @throws \Exception |
||
204 | * |
||
205 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
206 | */ |
||
207 | public function destroy(Testimonial $testimonial) |
||
216 | } |
||
217 |
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.