FrameworkServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Loadsman\LaravelPlugin\Modules\Framework;
4
use Illuminate\Routing\Router;
5
6
class FrameworkServiceProvider 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/framework',
17 3
        ], function ($router) {
18 3
            $router->exposeAll(FrameworkController::class);
19 3
        });
20
    }
21
}