SearchController   A
last analyzed

Complexity

Total Complexity 11

Size/Duplication

Total Lines 117
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 117
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 11
lcom 0
cbo 5

11 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
A ipv4() 0 4 1
A ipv6() 0 4 1
A mac() 0 4 1
A arp() 0 4 1
1
<?php
2
/**
3
 * app/Http/Controllers/General/SearchController.php
4
 *
5
 * HTTP Controller for searches
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\General;
27
28
use App\DataTables\General\ArpDataTable;
29
use App\DataTables\General\IPv4DataTable;
30
use App\DataTables\General\IPv6DataTable;
31
use App\DataTables\General\MacDataTable;
32
use App\Http\Controllers\Controller;
33
use Illuminate\Http\Request;
34
35
class SearchController extends Controller
36
{
37
    /**
38
     * Display a listing of the resource.
39
     *
40
     * @return \Illuminate\Http\Response|null
41
     */
42
    public function index()
43
    {
44
        //
45
    }
46
47
    /**
48
     * Show the form for creating a new resource.
49
     *
50
     * @return \Illuminate\Http\Response|null
51
     */
52
    public function create()
53
    {
54
        //
55
    }
56
57
    /**
58
     * Store a newly created resource in storage.
59
     *
60
     * @param  \Illuminate\Http\Request  $request
61
     * @return \Illuminate\Http\Response|null
62
     */
63
    public function store(Request $request)
64
    {
65
        //
66
    }
67
68
    /**
69
     * Display the specified resource.
70
     *
71
     * @return \Illuminate\Http\Respoonse|null
72
     */
73
    public function show()
74
    {
75
        //
76
    }
77
78
    /**
79
     * Show the form for editing the specified resource.
80
     *
81
     * @param  int  $id
82
     * @return \Illuminate\Http\Response|null
83
     */
84
    public function edit($id)
85
    {
86
        //
87
    }
88
89
    /**
90
     * Update the specified resource in storage.
91
     *
92
     * @param  \Illuminate\Http\Request  $request
93
     * @param  int  $id
94
     * @return \Illuminate\Http\Response|null
95
     */
96
    public function update(Request $request, $id)
97
    {
98
        //
99
    }
100
101
    /**
102
     * Remove the specified resource from storage.
103
     *
104
     * @param  int  $id
105
     * @return \Illuminate\Http\Response|null
106
     */
107
    public function destroy($id)
108
    {
109
        //
110
    }
111
112
    /**
113
     * Display the specified resource.
114
     *
115
     * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View
116
     */
117 1
    public function ipv4(IPv4DataTable $dataTable)
118
    {
119 1
        return $dataTable->render('general.search.list');
120
    }
121
122
    /**
123
     * Display the specified resource.
124
     *
125
     * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View
126
     */
127 1
    public function ipv6(IPv6DataTable $dataTable)
128
    {
129 1
        return $dataTable->render('general.search.list');
130
    }
131
132
    /**
133
     * Display the specified resource.
134
     *
135
     * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View
136
     */
137 1
    public function mac(MacDataTable $dataTable)
138
    {
139 1
        return $dataTable->render('general.search.list');
140
    }
141
142
    /**
143
     * Display the specified resource.
144
     *
145
     * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View
146
     */
147 1
    public function arp(ArpDataTable $dataTable)
148
    {
149 1
        return $dataTable->render('general.search.list');
150
    }
151
}
152