HomeController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
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
namespace App\Http\Controllers;
4
5
use Illuminate\Http\Request;
6
7
class HomeController extends Controller
8
{
9
    /**
10
     * Create a new controller instance.
11
     *
12
     * @return void
13
     */
14
    public function __construct()
15
    {
16
        $this->middleware('auth');
17
    }
18
19
    /**
20
     * Show the application dashboard.
21
     *
22
     * @return \Illuminate\Contracts\Support\Renderable
23
     */
24
    public function index()
25
    {
26
        return view('home');
27
    }
28
}
29