Completed
Push — master ( 71c1d9...f78dbb )
by ARCANEDEV
03:55
created

SettingsRoutes   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 19
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A map() 0 7 1
1
<?php namespace Arcanesoft\Foundation\Http\Routes\Admin;
2
3
use Arcanedev\Support\Bases\RouteRegister;
4
use Illuminate\Contracts\Routing\Registrar;
5
6
/**
7
 * Class     SettingsRoutes
8
 *
9
 * @package  Arcanesoft\Foundation\Http\Routes\Admin
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class SettingsRoutes extends RouteRegister
13
{
14
    /* ------------------------------------------------------------------------------------------------
15
     |  Main Functions
16
     | ------------------------------------------------------------------------------------------------
17
     */
18
    /**
19
     * Map routes.
20
     *
21
     * @param  \Illuminate\Contracts\Routing\Registrar  $router
22
     */
23
    public function map(Registrar $router)
24
    {
25 12
        $this->group(['prefix' => 'settings', 'as' => 'settings.'], function () {
26 12
            $this->get('/', 'SettingsController@index')
27 12
                 ->name('index'); // admin::foundation.settings.index
28 12
        });
29 12
    }
30
}
31