Controller   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of Laravel Sense.
5
 *
6
 * (c) Anton Komarev <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Cog\Laravel\Sense\Http\Controllers;
15
16
use Cog\Laravel\Sense\Http\Middleware\Authenticate;
17
use Illuminate\Routing\Controller as BaseController;
18
19
class Controller extends BaseController
20
{
21
    /**
22
     * Create a new controller instance.
23
     *
24
     * @return void
25
     */
26
    public function __construct()
27
    {
28
        $this->middleware(Authenticate::class);
29
    }
30
}
31