RuleServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 16
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
A boot() 0 8 1
1
<?php
2
3
namespace Loadsman\LaravelPlugin\Modules\Rule;
4
use Illuminate\Routing\Router;
5
6
class RuleServiceProvider extends \Illuminate\Support\ServiceProvider
7
{
8 3
    public function register()
9
    {
10
11 3
    }
12
13 3
    public function boot(Router $router)
14
    {
15 3
        $router->group([
16 3
            'prefix'     => 'loadsman/rules',
17 3
        ], function ($router) {
18 3
            $router->exposeAll(RuleController::class);
19 3
        });
20
    }
21
}