Completed
Push — master ( 1d5273...930607 )
by ARCANEDEV
03:40
created

RoutesController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 20
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A index() 0 9 1
1
<?php namespace Arcanesoft\Foundation\Http\Controllers\System;
2
3
use Arcanesoft\Foundation\Http\Controllers\Controller;
4
5
/**
6
 * Class     RoutesController
7
 *
8
 * @package  Arcanesoft\Foundation\Http\Controllers\System
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class RoutesController extends Controller
12
{
13
    public function __construct()
14
    {
15
        parent::__construct();
16
17
        $this->setCurrentPage('foundation-system-routes');
18
        $this->addBreadcrumbRoute('System', 'foundation::system.routes.index');
19
    }
20
21
    public function index()
22
    {
23
        $this->setTitle('Routes Viewer');
24
        $this->addBreadcrumb('Routes');
25
26
        $routes = app('arcanedev.foundation.routes-viewer')->all();
27
28
        return $this->view('system.routes.list', compact('routes'));
29
    }
30
}
31