Completed
Push — master ( 7328ed...c4af57 )
by ARCANEDEV
04:44
created

ProfileRoutes   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A map() 0 13 1
1
<?php namespace Arcanesoft\Auth\Http\Routes\Admin;
2
3
use Arcanedev\Support\Routing\RouteRegistrar;
4
5
/**
6
 * Class     ProfileRoutes
7
 *
8
 * @package  Arcanesoft\Auth\Http\Routes\Admin
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class ProfileRoutes extends RouteRegistrar
12
{
13
    /* -----------------------------------------------------------------
14
     |  Main Methods
15
     | -----------------------------------------------------------------
16
     */
17
    /**
18
     * Map routes.
19
     */
20 12
    public function map()
21
    {
22
        $this->prefix('profile')->name('profile.')->group(function () {
23 12
            $this->get('/', 'ProfileController@index')
24 12
                 ->name('index'); // admin::auth.profile.index
25
26
            // TODO: Remove the user id ??
27 12
            $this->prefix('{auth_user}/password')->name('password.')->group(function () {
28 12
                $this->put('/', 'ProfileController@updatePassword')
29 12
                     ->name('update'); // admin::auth.profile.password.update
30 12
            });
31 12
        });
32 12
    }
33
}
34