GuestUserServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Acacha\User\Providers;
4
5
use Acacha\User\Http\Middleware\GuestUser;
6
use Illuminate\Routing\Router;
7
use Illuminate\Support\ServiceProvider;
8
9
/**
10
 * Class GuestUserServiceProvider.
11
 *
12
 * @package Acacha\User\Providers
13
 */
14
class GuestUserServiceProvider extends ServiceProvider
15
{
16
    /**
17
     * Bootstrap the application services.
18
     *
19
     * @param Router $router
20
     */
21
    public function boot(Router $router)
22
    {
23
        $router->pushMiddlewareToGroup('web', GuestUser::class);
24
    }
25
26
    /**
27
     * Register the application services.
28
     *
29
     * @return void
30
     */
31
    public function register()
32
    {
33
        //
34
    }
35
}
36