HomeController::index()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
use App\Http\Requests;
11
use Illuminate\Http\Request;
12
13
/**
14
 * Class HomeController
15
 * @package App\Http\Controllers
16
 */
17
class HomeController extends Controller
18
{
19
    /**
20
     * Create a new controller instance.
21
     *
22
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by Sergi Tur Badenas
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
23
     */
24
    public function __construct()
25
    {
26
        $this->middleware('auth');
27
    }
28
29
    /**
30
     * Show the application dashboard.
31
     *
32
     * @return Response
33
     */
34
    public function index()
35
    {
36
        return view('adminlte::home');
37
    }
38
}
39