RouteServiceProvider::map()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php namespace Arcanesoft\Backups\Providers;
2
3
use Arcanesoft\Backups\Http\Routes;
4
use Arcanesoft\Core\Bases\RouteServiceProvider as ServiceProvider;
5
6
/**
7
 * Class     RouteServiceProvider
8
 *
9
 * @package  Arcanesoft\Backups\Providers
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class RouteServiceProvider extends ServiceProvider
13
{
14
    /* -----------------------------------------------------------------
15
     |  Properties
16
     | -----------------------------------------------------------------
17
     */
18
19
    /**
20
     * The admin controller namespace for the application.
21
     *
22
     * @var string
23
     */
24
    protected $adminNamespace = 'Arcanesoft\\Backups\\Http\\Controllers\\Admin';
25
26
    /* -----------------------------------------------------------------
27
     |  Main Methods
28
     | -----------------------------------------------------------------
29
     */
30
31
    /**
32
     * Register the route bindings.
33
     */
34 4
    protected function registerRouteBindings()
35
    {
36
        //
37 4
    }
38
39
    /**
40
     * Define the routes for the application.
41
     */
42
    public function map()
43
    {
44 4
        $this->adminGroup(function () {
45 4
            $this->mapAdminRoutes();
46 4
        });
47 4
    }
48
49
    /**
50
     * Define the admin routes for the application.
51
     */
52 4
    private function mapAdminRoutes()
53
    {
54 4
        $this->name('backups.')
55 4
            ->prefix($this->config()->get('arcanesoft.backups.route.prefix', 'backups'))
56 4
            ->group(function () {
57 4
                Routes\StatusesRoutes::register();
58 4
            });
59
    }
60
}
61