Test Setup Failed
Pull Request — master (#150)
by Nick
14:47 queued 06:28
created

DashboardController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Dashboard Controller.
4
 *
5
 * @package App\Http\Controllers
6
 *
7
 * @author    Nick Menke <[email protected]>
8
 * @copyright 2018-2020 Nick Menke
9
 *
10
 * @link https://github.com/nlmenke/vertebrae
11
 */
12
13
declare(strict_types=1);
14
15
namespace App\Http\Controllers;
16
17
use Illuminate\Contracts\View\Factory;
18
use Illuminate\View\View;
19
20
/**
21
 * The Dashboard controller class.
22
 *
23
 * This class contains all functionality required to view the homepage.
24
 *
25
 * @since x.x.x introduced
26
 */
27
class DashboardController extends AbstractController
28
{
29
    /**
30
     * Shows the application dashboard.
31
     *
32
     * Load any data required to properly display the homepage.
33
     *
34
     * @return Factory|View
35
     */
36
    public function index()
37
    {
38
        return view('welcome');
39
    }
40
}
41