| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 26 | public function index(Request $request, $type = null) |
||
|
1 ignored issue
–
show
|
|||
| 27 | { |
||
| 28 | $notifications = $this->api->be(auth()->user())->get('/api/notifications/'.$type); |
||
| 29 | |||
| 30 | if ($type === 'archive') |
||
| 31 | { |
||
| 32 | $page = ''; |
||
| 33 | $button = ' notifications'; |
||
| 34 | $bg = 'maroon'; |
||
| 35 | } |
||
| 36 | else { |
||
| 37 | $page = 'archive'; |
||
| 38 | $button = ' archive'; |
||
| 39 | $bg = 'blue'; |
||
| 40 | } |
||
| 41 | |||
| 42 | return view('notifications.list', ['notifications' => $notifications, 'page' => $page, 'button' => $button, 'bg' => $bg, "type" => $type]); |
||
| 43 | } |
||
| 44 | |||
| 52 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.