TestController   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 22
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A show() 0 6 1
A index() 0 4 1
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