HomeController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 20
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A index() 0 3 1
1
<?php
2
3
/*
4
 * Taken from
5
 * https://github.com/laravel/framework/blob/5.3/src/Illuminate/Auth/Console/stubs/make/controllers/HomeController.stub
6
 */
7
8
namespace App\Http\Controllers;
9
10
/**
11
 * Class HomeController.
12
 */
13
class HomeController extends Controller
14
{
15
    /**
16
     * Create a new controller instance.
17
     *
18
     * @return void
19
     */
20
    public function __construct()
21
    {
22
        $this->middleware('auth');
23
    }
24
25
    /**
26
     * Show the application dashboard.
27
     *
28
     * @return Response
0 ignored issues
show
Bug introduced by
The type App\Http\Controllers\Response was not found. Did you mean Response? If so, make sure to prefix the type with \.
Loading history...
29
     */
30
    public function index()
31
    {
32
        return view('adminlte::home');
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('adminlte::home') returns the type Illuminate\View\View which is incompatible with the documented return type App\Http\Controllers\Response.
Loading history...
33
    }
34
}
35