Completed
Push — master ( 394917...1d96a4 )
by ARCANEDEV
08:06
created

ProfileRoutes::map()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 12
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
ccs 12
cts 12
cp 1
rs 9.4286
cc 1
eloc 9
nc 1
nop 1
crap 1
1
<?php namespace Arcanesoft\Auth\Http\Routes\Foundation;
2
3
use Arcanedev\Support\Bases\RouteRegister;
4
use Illuminate\Contracts\Routing\Registrar;
5
6
/**
7
 * Class     ProfileRoutes
8
 *
9
 * @package  Arcanesoft\Auth\Http\Routes\Foundation
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class ProfileRoutes extends RouteRegister
13
{
14
    /* ------------------------------------------------------------------------------------------------
15
     |  Main Functions
16
     | ------------------------------------------------------------------------------------------------
17
     */
18
    /**
19
     * Map routes.
20
     *
21
     * @param  Registrar  $router
22
     */
23 18
    public function map(Registrar $router)
24
    {
25 18
        parent::map($router);
26
27 18
        $this->group([
28 18
            'prefix'    => 'profile',
29 18
            'as'        => 'profile.',
30 18
        ], function () {
31 18
            $this->get('/', [
32 18
                'as'   => 'index',
33 18
                'uses' => 'ProfileController@index',
34 18
            ]);
35 18
        });
36 18
    }
37
}
38