Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class TestFeaturedAssistant |
||
8 | { |
||
9 | // define routes and their endpoints |
||
10 | // default AssistantController guides to the Assistant to convention method like managers: |
||
11 | // e.g. Route::post('pages/archive', [AssistantController, 'archive']); -> archive method is propagated to |
||
12 | // ArchiveAssistant@archive |
||
13 | |||
14 | public static function register($app) |
||
|
|||
15 | { |
||
16 | Route::get('testje', [static::class, 'archive']); |
||
17 | Route::get('testje', [AssistantController, 'archive']); |
||
18 | |||
19 | // fetched manager |
||
20 | // propagate naar assistant::archive |
||
21 | } |
||
22 | |||
23 | public function archive(Request $request) |
||
28 | } |
||
29 | } |
||
30 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.