UsersController   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 84
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 84
ccs 0
cts 15
cp 0
rs 10
c 0
b 0
f 0
wmc 8
lcom 0
cbo 4

7 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 5 2
A create() 0 4 1
A store() 0 4 1
A show() 0 4 1
A edit() 0 4 1
A update() 0 4 1
A destroy() 0 4 1
1
<?php
2
/**
3
 * UsersController.php
4
 *
5
 * -Description-
6
 *
7
 * This program is free software: you can redistribute it and/or modify
8
 * it under the terms of the GNU General Public License as published by
9
 * the Free Software Foundation, either version 3 of the License, or
10
 * (at your option) any later version.
11
 *
12
 * This program is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
15
 * GNU General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU General Public License
18
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 *
20
 * @package    LibreNMS
21
 * @link       http://librenms.org
22
 * @copyright  2016 Tony Murray
23
 * @author     Tony Murray <[email protected]>
24
 */
25
26
namespace App\Api\Controllers;
27
28
use App\Models\User;
29
use Dingo\Api\Routing\Helpers;
30
use Request;
31
32
class UsersController extends Controller
33
{
34
35
    use Helpers;
36
37
    /**
38
     * Display a listing of all alerts
39
     *
40
     * @param Request $request
41
     * @return \Illuminate\Pagination\LengthAwarePaginator
42
     */
43
    public function index(Request $request)
44
    {
45
        $per_page = $request->per_page ?: 25;
46
        return User::query()->paginate($per_page);
47
    }
48
49
50
    /**
51
     * Show the form for creating a new resource.
52
     *
53
     * @return \Illuminate\Http\Response|null
54
     */
55
    public function create()
56
    {
57
        //
58
    }
59
60
    /**
61
     * Store a newly created resource in storage.
62
     *
63
     * @param  \Illuminate\Http\Request  $request
64
     * @return \Illuminate\Http\Response|null
65
     */
66
    public function store(Request $request)
67
    {
68
        //
69
    }
70
71
    /**
72
     * Display the specified resource.
73
     *
74
     * @param  int  $id
75
     * @return \Illuminate\Http\Response|null
76
     */
77
    public function show(Request $request, $id)
78
    {
79
        //
80
    }
81
82
    /**
83
     * Show the form for editing the specified resource.
84
     *
85
     * @param  int  $id
86
     * @return \Illuminate\Http\Response|null
87
     */
88
    public function edit($id)
89
    {
90
        //
91
    }
92
93
    /**
94
     * Update the specified resource in storage.
95
     *
96
     * @param  \Illuminate\Http\Request  $request
97
     * @param  int  $id
98
     * @return \Illuminate\Http\Response|null
99
     */
100
    public function update(Request $request, $id)
101
    {
102
        //
103
    }
104
105
    /**
106
     * Remove the specified resource from storage.
107
     *
108
     * @param  int  $id
109
     * @return \Illuminate\Http\Response|null
110
     */
111
    public function destroy($id)
112
    {
113
        //
114
    }
115
}
116