Completed
Push — master ( dc97e3...7d3e58 )
by Adam
03:03
created

HomeController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 17
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A index() 0 4 1
1
<?php
2
3
namespace App\Http\Controllers;
4
5
class HomeController extends Controller
6
{
7 1
    public function __construct()
8
    {
9 1
        $this->middleware('auth');
10 1
    }
11
12
    /**
13
     * Show the application dashboard.
14
     *
15
     * @return \Illuminate\Http\Response
0 ignored issues
show
Documentation introduced by
Should the return type not be \Illuminate\View\View|\I...\Contracts\View\Factory?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
16
     */
17 1
    public function index()
18
    {
19 1
        return view('home');
20
    }
21
}
22