RouteServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

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