RouteServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 4
Bugs 0 Features 0
Metric Value
wmc 3
c 4
b 0
f 0
lcom 0
cbo 0
dl 0
loc 32
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getFrontendRoute() 0 4 1
A getBackendRoute() 0 4 1
A getApiRoute() 0 4 1
1
<?php namespace Modules\Page\Providers;
2
3
use Modules\Core\Providers\RoutingServiceProvider as CoreRoutingServiceProvider;
4
5
class RouteServiceProvider extends CoreRoutingServiceProvider
6
{
7
    /**
8
     * The root namespace to assume when generating URLs to actions.
9
     * @var string
10
     */
11
    protected $namespace = 'Modules\Page\Http\Controllers';
12
13
    /**
14
     * @return string
15
     */
16
    protected function getFrontendRoute()
17
    {
18
        return __DIR__ . '/../Http/frontendRoutes.php';
19
    }
20
21
    /**
22
     * @return string
23
     */
24
    protected function getBackendRoute()
25
    {
26
        return __DIR__ . '/../Http/backendRoutes.php';
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    protected function getApiRoute()
33
    {
34
        return false;
35
    }
36
}
37