RouteServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 5
dl 0
loc 50
rs 10
c 0
b 0
f 0
ccs 14
cts 14
cp 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A map() 0 6 1
A registerRouteBindings() 0 4 1
A mapAdminRoutes() 0 9 1
1
<?php namespace Arcanesoft\Pages\Providers;
2
3
use Arcanesoft\Core\Bases\RouteServiceProvider as ServiceProvider;
4
use Arcanesoft\Pages\Http\Routes;
5
6
/**
7
 * Class     RouteServiceProvider
8
 *
9
 * @package  Arcanesoft\Pages\Providers
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class RouteServiceProvider extends ServiceProvider
13
{
14
    /* -----------------------------------------------------------------
15
     |  Properties
16
     | -----------------------------------------------------------------
17
     */
18
19
    protected $adminNamespace = 'Arcanesoft\\Pages\\Http\\Controllers\\Admin';
20
21
    /* -----------------------------------------------------------------
22
     |  Main Methods
23
     | -----------------------------------------------------------------
24
     */
25
26
    /**
27
     * Define the routes for the application.
28
     */
29 6
    public function map()
30
    {
31
        $this->adminGroup(function () {
32 6
            $this->mapAdminRoutes();
33 6
        });
34 6
    }
35
36
    /* -----------------------------------------------------------------
37
     |  Other Methods
38
     | -----------------------------------------------------------------
39
     */
40
41
    /**
42
     * Register the route bindings.
43
     */
44 6
    protected function registerRouteBindings()
45
    {
46
        //
47 6
    }
48
49
    /**
50
     * Define the admin routes for the application.
51
     */
52 6
    protected function mapAdminRoutes()
53
    {
54 6
        $this->name('pages.')
55 6
             ->prefix($this->config()->get('arcanesoft.pages.route.prefix', 'pages'))
56 6
             ->group(function () {
57 6
                 Routes\Admin\StatsRoutes::register();
58 6
                 Routes\Admin\PagesRoutes::register();
59 6
             });
60 6
    }
61
}
62