| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 25 | public function index(Request $request, $type = null) |
||
| 26 | { |
||
| 27 | if ($type === 'archive') |
||
| 28 | { |
||
| 29 | $notifications = Notification::read([$request->user()->user_id])->limit()->get(); |
||
| 30 | } |
||
| 31 | else { |
||
| 32 | $notifications = Notification::unread()->limit()->get(); |
||
|
|
|||
| 33 | } |
||
| 34 | |||
| 35 | if ($request->query('displayFormat') == 'human') { |
||
| 36 | } |
||
| 37 | return $notifications; |
||
| 38 | } |
||
| 39 | |||
| 73 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.