Completed
Push — master ( 7ec104...6d5219 )
by Sergi Tur
98:33 queued 68:39
created

HomeController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A index() 0 4 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
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
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
}