TrackerRoutes   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 28
ccs 12
cts 12
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A map() 0 17 1
1
<?php namespace Arcanesoft\Tracker\Http\Routes\Admin;
2
3
use Arcanedev\Support\Routing\RouteRegistrar;
4
5
/**
6
 * Class     TrackerRoutes
7
 *
8
 * @package  Arcanesoft\Tracker\Http\Routes\Admin
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class TrackerRoutes extends RouteRegistrar
12
{
13
    /* -----------------------------------------------------------------
14
     |  Main Methods
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Map routes.
20
     */
21
    public function map()
22
    {
23 4
        $this->prefix('stats')->name('stats.')->group(function () {
24 4
            $this->get('/', 'DashboardController@index')
25 4
                 ->name('index'); // admin::tracker.stats.index
26 4
        });
27
28 4
        $this->prefix('visitors')->name('visitors.')->group(function () {
29 4
            $this->get('/', 'VisitorsController@index')
30 4
                 ->name('index'); // admin::tracker.visitors.index
31 4
        });
32
33 4
        $this->prefix('settings')->name('settings.')->group(function () {
34 4
            $this->get('/', 'SettingsController@index')
35 4
                 ->name('index'); // admin::tracker.settings.index
36 4
        });
37
    }
38
}
39