| Total Complexity | 6 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Coverage | 23.08% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class UserController extends Controller |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Display a listing of the resource. |
||
| 14 | * |
||
| 15 | * @return JsonResponse |
||
| 16 | */ |
||
| 17 | public function index() |
||
| 18 | { |
||
| 19 | return \response()->json(); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Show the form for creating a new resource. |
||
| 24 | * |
||
| 25 | * @return JsonResponse |
||
| 26 | */ |
||
| 27 | public function create() |
||
| 28 | { |
||
| 29 | return \response()->json(); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Store a newly created resource in storage. |
||
| 34 | * |
||
| 35 | * @param Request $request |
||
| 36 | * |
||
| 37 | * @return JsonResponse |
||
| 38 | */ |
||
| 39 | public function store(Request $request) |
||
|
|
|||
| 40 | { |
||
| 41 | return \response()->json(); |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Show the specified resource. |
||
| 46 | * |
||
| 47 | * @return JsonResponse |
||
| 48 | */ |
||
| 49 | 1 | public function show() |
|
| 50 | { |
||
| 51 | 1 | $this->authorize('access', get_authenticated_user()); |
|
| 52 | |||
| 53 | 1 | return \response()->json(\Auth::user()->toArray()); |
|
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Update the specified resource in storage. |
||
| 58 | * |
||
| 59 | * @param Request $request |
||
| 60 | * |
||
| 61 | * @return JsonResponse |
||
| 62 | */ |
||
| 63 | public function update(Request $request) |
||
| 64 | { |
||
| 65 | return \response()->json(); |
||
| 66 | } |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Remove the specified resource from storage. |
||
| 70 | * |
||
| 71 | * @return JsonResponse |
||
| 72 | */ |
||
| 73 | public function destroy() |
||
| 76 | } |
||
| 77 | } |
||
| 78 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.