| 1 | <?php | ||
| 9 | class UsersWidgetController extends Controller | ||
| 10 | { | ||
| 11 |     public function __construct() { | ||
| 14 | |||
| 15 | /** | ||
| 16 | * Display a listing of all authorized devices | ||
| 17 | * | ||
| 18 | * @return \Illuminate\Http\Response | ||
|  | |||
| 19 | */ | ||
| 20 | public function index(Request $request) | ||
| 24 | |||
| 25 | /** | ||
| 26 | * Show the form for creating a new resource. | ||
| 27 | * | ||
| 28 | * @return \Illuminate\Http\Response | ||
| 29 | */ | ||
| 30 | public function create() | ||
| 34 | |||
| 35 | /** | ||
| 36 | * Store a newly created resource in storage. | ||
| 37 | * | ||
| 38 | * @param \Illuminate\Http\Request $request | ||
| 39 | * @return \Illuminate\Http\Response | ||
| 40 | */ | ||
| 41 | public function store(Request $request) | ||
| 45 | |||
| 46 | /** | ||
| 47 | * Display the specified resource. | ||
| 48 | * | ||
| 49 | * @param int $id | ||
| 50 | * @return \Illuminate\Http\Response | ||
| 51 | */ | ||
| 52 | public function show(Request $request, $id) | ||
| 57 | |||
| 58 | /** | ||
| 59 | * Show the form for editing the specified resource. | ||
| 60 | * | ||
| 61 | * @param int $id | ||
| 62 | * @return \Illuminate\Http\Response | ||
| 63 | */ | ||
| 64 | public function edit($id) | ||
| 68 | |||
| 69 | /** | ||
| 70 | * Update the specified resource in storage. | ||
| 71 | * | ||
| 72 | * @param \Illuminate\Http\Request $request | ||
| 73 | * @param int $id | ||
| 74 | * @return \Illuminate\Http\Response | ||
| 75 | */ | ||
| 76 | public function update(Request $request, $id) | ||
| 80 | |||
| 81 | /** | ||
| 82 | * Remove the specified resource from storage. | ||
| 83 | * | ||
| 84 | * @param int $id | ||
| 85 | * @return \Illuminate\Http\Response | ||
| 86 | */ | ||
| 87 | public function destroy($id) | ||
| 91 | |||
| 92 | } | ||
| 93 | 
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.