| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 25 | public function index($type = null) |
||
| 26 | { |
||
| 27 | |||
| 28 | $notifications = $this->api->be(auth()->user())->get('/api/notifications/'.$type); |
||
|
|
|||
| 29 | if ($type === 'archive') |
||
| 30 | { |
||
| 31 | $page = ''; |
||
| 32 | $button = 'Notifications'; |
||
| 33 | $bg = 'maroon'; |
||
| 34 | } |
||
| 35 | else { |
||
| 36 | $page = 'archive'; |
||
| 37 | $button = 'Archive'; |
||
| 38 | $bg = 'blue'; |
||
| 39 | } |
||
| 40 | |||
| 41 | return view('notifications.list', ['notifications' => $notifications, 'page' => $page, 'button' => $button, 'bg' => $bg, "type" => $type]); |
||
| 42 | } |
||
| 43 | |||
| 70 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.