LaravelGeneratorAdvancedController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 6 1
1
<?php
2
3
namespace CSlant\LaraGenAdv\Http\Controllers;
4
5
use CSlant\LaraGenAdv\Http\Controllers\Detect\DetectController;
6
use Illuminate\Contracts\Foundation\Application;
7
use Illuminate\Contracts\View\Factory;
8
use Illuminate\Contracts\View\View;
9
use Illuminate\Http\Request;
10
use Illuminate\Routing\Controller;
11
12
class LaravelGeneratorAdvancedController extends Controller
13
{
14
    /**
15
     * @param  Request  $request
16
     * @return Application|Factory|View
17
     */
18
    public function index(Request $request)
0 ignored issues
show
Unused Code introduced by
The parameter $request 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

18
    public function index(/** @scrutinizer ignore-unused */ Request $request)

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...
19
    {
20
        $detectPatternController = new DetectController();
21
        $repositories = $detectPatternController->detect();
0 ignored issues
show
Unused Code introduced by
The assignment to $repositories is dead and can be removed.
Loading history...
22
23
        return view('lara-gen-adv::index');
24
    }
25
}
26