| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function index($type = null) |
||
| 20 | { |
||
| 21 | |||
| 22 | $notifications = $this->api->be(auth()->user())->get('/api/notifications/'.$type); |
||
|
|
|||
| 23 | if ($type === 'archive') { |
||
| 24 | $page = ''; |
||
| 25 | $button = 'Notifications'; |
||
| 26 | $bg = 'maroon'; |
||
| 27 | } |
||
| 28 | else { |
||
| 29 | $page = 'archive'; |
||
| 30 | $button = 'Archive'; |
||
| 31 | $bg = 'blue'; |
||
| 32 | } |
||
| 33 | |||
| 34 | return view('notifications.list', compact(['notifications', 'page', 'button', 'bg', "type"])); |
||
| 35 | } |
||
| 36 | |||
| 65 |
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.