FrameworkServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 7
cts 7
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 1
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
}