GuestUserServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 22
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A register() 0 4 1
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