Completed
Pull Request — master (#10)
by Manuel
02:47
created

GroupController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 2
dl 0
loc 16
ccs 0
cts 5
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A show() 0 6 1
1
<?php
2
3
namespace PiFinder\Http\Controllers;
4
5
use PiFinder\Device;
6
7
class GroupController extends Controller
8
{
9
    /**
10
     * Show all Devices for the given group.
11
     *
12
     * @param string $group
13
     *
14
     * @return Response
15
     */
16
    public function show($group)
17
    {
18
        $devices = Device::where('group', $group)->get();
19
20
        return view('overview')->with(compact('devices', 'group'));
21
    }
22
}
23