Completed
Push — dev5 ( 7dd80f...0663e2 )
by Ron
12:19
created

SystemsController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Http\Controllers\Systems;
4
5
use Illuminate\Http\Request;
6
use App\Http\Controllers\Controller;
7
8
class SystemsController extends Controller
9
{
10
    public function __construct()
11
    {
12
        $this->middleware('auth');
13
    }
14
    
15
    //  Allow the user to select a category to view
16
    public function index()
17
    {
18
        echo 'select category';
19
    }
20
    
21
    //  Select the system type for the given category
22
    public function selectSys($cat)
0 ignored issues
show
Unused Code introduced by
The parameter $cat is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
    public function selectSys(/** @scrutinizer ignore-unused */ $cat)

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

Loading history...
23
    {
24
        echo 'select system';
25
    }
26
    
27
    //  Show the details of the selected system
28
    public function details($cat, $sys)
0 ignored issues
show
Unused Code introduced by
The parameter $sys is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

28
    public function details($cat, /** @scrutinizer ignore-unused */ $sys)

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

Loading history...
Unused Code introduced by
The parameter $cat is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

28
    public function details(/** @scrutinizer ignore-unused */ $cat, $sys)

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

Loading history...
29
    {
30
        echo 'details';
31
    }
32
}
33