| 1 | <?php |
||
| 8 | class NotificationController extends Controller |
||
| 9 | { |
||
| 10 | use Helpers; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Display a listing of the resource. |
||
| 14 | * |
||
| 15 | * @param null $type |
||
| 16 | * @return \Illuminate\Http\Response |
||
|
|
|||
| 17 | */ |
||
| 18 | 1 | public function index($type = null) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Update a notifications status. |
||
| 37 | * |
||
| 38 | * @param $id |
||
| 39 | * @param $action |
||
| 40 | * @return \Illuminate\Http\JsonResponse |
||
| 41 | */ |
||
| 42 | public function update($id, $action) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Create a new notification |
||
| 49 | * |
||
| 50 | * @param Request $request |
||
| 51 | * @return \Illuminate\Http\JsonResponse |
||
| 52 | */ |
||
| 53 | public function create(Request $request) |
||
| 61 | } |
||
| 62 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.