EventServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 35
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
1
<?php namespace App\Providers;
2
3
use App\Events as Events;
4
use App\Listeners as Listeners;
5
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
6
7
class EventServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * The event handler mappings for the application.
11
     *
12
     * @var array
13
     */
14
    protected $listen = [
15
        Events\Files\Uploaded::class => [
16
            Listeners\Files\ValidateUploadRealMimeAgainstAllowedTypes::class,
17
            Listeners\Files\PersistUploadedFile::class
18
        ],
19
        Events\Users\LoggedIn::class => [],
20
        Events\Users\LoggedOut::class => [],
21
        Events\Users\Registered::class => [
22
            Listeners\Users\SendActivationLinkViaEmail::class
23
        ],
24
        Events\Users\RequestedActivationLink::class => [
25
            Listeners\Users\SendActivationLinkViaEmail::class
26
        ],
27
        Events\Users\RequestedResetPasswordLink::class => [],
28
    ];
29
30
    /**
31
     * Register any other events for your application.
32
     *
33
     * @return void
34
     */
35 19
    public function boot()
36
    {
37 19
        parent::boot();
38
39
        //
40 19
    }
41
}
42