HomeController   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 40
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0
wmc 4

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A about() 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 home.
21
     *
22
     * @return \Illuminate\Http\Response
23
     */
24
    public function index()
25
    {
26
        return view('home.index');
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('home.index') returns the type Illuminate\View\View which is incompatible with the documented return type Illuminate\Http\Response.
Loading history...
27
    }
28
29
    /**
30
     * Show the about page.
31
     *
32
     * @return \Illuminate\Http\Response
33
     */
34
    public function about()
35
    {
36
        return view('home.about');
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('home.about') returns the type Illuminate\View\View which is incompatible with the documented return type Illuminate\Http\Response.
Loading history...
37
    }
38
39
    /**
40
     * Show the help page.
41
     *
42
     * @return \Illuminate\Http\Response
43
     */
44
    public function help()
45
    {
46
        return view('home.help');
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('home.help') returns the type Illuminate\View\View which is incompatible with the documented return type Illuminate\Http\Response.
Loading history...
47
    }
48
}
49