Completed
Push — master ( 906f5a...709e36 )
by Phecho
03:29
created

HelpRoutes::map()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 15
rs 9.4286
cc 1
eloc 9
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of Gitamin.
5
 * 
6
 * Copyright (C) 2015-2016 The Gitamin Team
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Gitamin\Http\Routes;
13
14
use Illuminate\Contracts\Routing\Registrar;
15
16
/**
17
 * This is the help routes class.
18
 */
19
class HelpRoutes
20
{
21
    /**
22
     * Define the help routes.
23
     *
24
     * @param \Illuminate\Contracts\Routing\Registrar $router
25
     */
26
    public function map(Registrar $router)
27
    {
28
        $router->group([
29
            'middleware' => ['app.hasSetting'],
30
            'setting'    => 'app_name',
31
            'as'         => 'help.',
32
        ], function ($router) {
33
            $router->get('help', [
34
                'as'   => 'index',
35
                'uses' => 'Help\\HelpController@index',
36
            ]);
37
38
            
39
        });
40
    }
41
}
42