Test Failed
Push — master ( 276ee0...707900 )
by Pavel
06:09
created

Controller   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 15
c 0
b 0
f 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A respondSuccess() 0 3 1
1
<?php
2
3
namespace PavelMironchik\LaravelBackupPanel\Http\Controllers;
4
5
use Illuminate\Http\Response;
6
use PavelMironchik\LaravelBackupPanel\Http\Middleware\Authenticate;
7
8
class Controller extends \Illuminate\Routing\Controller
9
{
10
    /**
11
     * Create a new controller instance.
12
     *
13
     * @return void
14
     */
15
    public function __construct()
16
    {
17
        $this->middleware(Authenticate::class);
18
    }
19
20
    public function respondSuccess(): Response
21
    {
22
        return response('', Response::HTTP_NO_CONTENT);
23
    }
24
}
25