Completed
Push — master ( 248e12...0fb364 )
by ARCANEDEV
03:19
created

ReminderRoutes   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
B map() 0 29 1
1
<?php namespace Arcanesoft\Auth\Http\Routes\Front;
2
3
use Arcanedev\Support\Bases\RouteRegister;
4
use Illuminate\Contracts\Routing\Registrar;
5
6
/**
7
 * Class     ReminderRoutes
8
 *
9
 * @package  Arcanesoft\Auth\Http\Routes\Front
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class ReminderRoutes extends RouteRegister
13
{
14
    /* ------------------------------------------------------------------------------------------------
15
     |  Main Functions
16
     | ------------------------------------------------------------------------------------------------
17
     */
18
    /**
19
     * Map routes.
20
     *
21
     * @param  Registrar  $router
22
     */
23 9
    public function map(Registrar $router)
24
    {
25 9
        parent::map($router);
26
27 9
        $this->group([
28 9
            'prefix'    => 'password',
29
            'as'        => 'password.'
30 9
        ], function () {
31 9
            $this->get('email', [
32 9
                'as'    => 'email.get',
33 9
                'uses'  => 'PasswordController@getEmail',
34 9
            ]);
35
36 9
            $this->post('email', [
37 9
                'as'    => 'email.post',
38 9
                'uses'  => 'PasswordController@postEmail',
39 9
            ]);
40
41 9
            $this->get('reset/{token}', [
42 9
                'as'    => 'reset.get',
43 9
                'uses'  => 'PasswordController@getReset',
44 9
            ]);
45
46 9
            $this->get('reset', [
47 9
                'as'    => 'reset.post',
48 9
                'uses'  => 'PasswordController@postReset',
49 9
            ]);
50 9
        });
51 9
    }
52
}
53