ExpressionEngineUserServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 21
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 1
A register() 0 4 1
1
<?php
2
3
namespace DrawMyAttention\ExpAuth;
4
5
use Illuminate\Support\Facades\Auth;
6
use Illuminate\Support\ServiceProvider;
7
8
class ExpressionEngineUserServiceProvider extends ServiceProvider{
9
10
    public function boot()
11
    {
12
        Auth::extend('ExpressionEngineAuth', function($app)
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
13
        {
14
            $model = $this->app['config']['auth.model'];
15
            return new ExpressionEngineUserProvider($this->app['hash'], $model);
16
        });
17
    }
18
19
    /**
20
     * Register the service provider.
21
     *
22
     * @return void
23
     */
24
    public function register()
25
    {
26
        // TODO: Implement register() method.
27
    }
28
}
29