LogsController   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 78
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 78
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 7
lcom 0
cbo 2

7 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 4 1
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
 * app/Http/Controllers/Alerting/LogsController.php
4
 *
5
 * HTTP Controller for alert logs data
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 Neil Lathwood
23
 * @author     Neil Lathwood <[email protected]>
24
 */
25
26
namespace App\Http\Controllers\Alerting;
27
28
use App\DataTables\Alerting\LogsDataTable;
29
use App\Http\Controllers\Controller;
30
use Illuminate\Http\Request;
31
32
class LogsController extends Controller
33
{
34
    /**
35
     * Display a listing of the resource.
36
     *
37
     * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View
38
     */
39 1
    public function index(LogsDataTable $dataTable)
40
    {
41 1
        return $dataTable->render('alerting.logs.list');
42
    }
43
44
    /**
45
     * Show the form for creating a new resource.
46
     *
47
     * @return \Illuminate\Http\Response|null
48
     */
49
    public function create()
50
    {
51
        //
52
    }
53
54
    /**
55
     * Store a newly created resource in storage.
56
     *
57
     * @param  \Illuminate\Http\Request  $request
58
     * @return \Illuminate\Http\Response|null
59
     */
60
    public function store(Request $request)
61
    {
62
        //
63
    }
64
65
    /**
66
     * Display the specified resource.
67
     *
68
     * @param  int  $id
69
     * @return \Illuminate\Http\Response|null
70
     */
71
    public function show($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
72
    {
73
        //
74
    }
75
76
    /**
77
     * Show the form for editing the specified resource.
78
     *
79
     * @param  int  $id
80
     * @return \Illuminate\Http\Response|null
81
     */
82
    public function edit($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
83
    {
84
        //
85
    }
86
87
    /**
88
     * Update the specified resource in storage.
89
     *
90
     * @param  \Illuminate\Http\Request  $request
91
     * @param  int  $id
92
     * @return \Illuminate\Http\Response|null
93
     */
94
    public function update(Request $request, $id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
95
    {
96
        //
97
    }
98
99
    /**
100
     * Remove the specified resource from storage.
101
     *
102
     * @param  int  $id
103
     * @return \Illuminate\Http\Response|null
104
     */
105
    public function destroy($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
106
    {
107
        //
108
    }
109
}
110