TestController::show()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
/*
4
 * rmarchiv.tk
5
 * (c) 2016-2017 by Marcel 'ryg' Hering
6
 */
7
8
namespace App\Http\Controllers\Api\v2;
9
10
use Dingo\Api\Routing\Helpers;
11
use App\Http\Controllers\Controller;
12
13
class TestController extends Controller
14
{
15
    use Helpers;
16
17
    public function __construct()
18
    {
19
        // Only apply to a subset of methods.
20
        $this->middleware('api.auth', ['only' => ['show']]);
21
    }
22
23
    public function show()
24
    {
25
        \Debugbar::disable();
26
27
        return 1;
28
    }
29
30
    public function index()
31
    {
32
        return 'index';
33
    }
34
}
35