| 1 | <?php |
||
| 9 | class NotificationController extends Controller |
||
| 10 | { |
||
| 11 | use Helpers; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Display a listing of the resource. |
||
| 15 | * |
||
| 16 | 1 | * @param null $type |
|
| 17 | * @return \Illuminate\Http\Response |
||
|
|
|||
| 18 | 1 | */ |
|
| 19 | 1 | public function index($type = null) |
|
| 36 | |||
| 37 | 1 | /** |
|
| 38 | 1 | * Update a notifications status. |
|
| 39 | 1 | * |
|
| 40 | * @param $id |
||
| 41 | * @param $action |
||
| 42 | 1 | * @return \Illuminate\Http\JsonResponse |
|
| 43 | */ |
||
| 44 | public function update($id, $action) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Create a new notification |
||
| 51 | * |
||
| 52 | * @param Request $request |
||
| 53 | * @return \Illuminate\Http\JsonResponse |
||
| 54 | */ |
||
| 55 | public function create(Request $request) |
||
| 63 | |||
| 64 | } |
||
| 65 |
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.