EventServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
1
<?php
2
3
namespace App\Providers;
4
5
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
6
7
/**
8
 * Class EventServiceProvider
9
 * @package App\Providers
10
 */
11
class EventServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * The event listener mappings for the application.
15
     *
16
     * @var array
17
     */
18
    protected $listen = [
19
        'App\Events\Tournament\TournamentWasStarted' => [
20
            'App\Listeners\Tournament\Draw',
21
        ],
22
        'App\Events\Tournament\TournamentWasReset' => [
23
            'App\Listeners\Tournament\Reset',
24
        ],
25
        'App\Events\MatchWasFinished' => [
26
            'App\Listeners\Match\UpdateResultType',
27
        ],
28
        'App\Events\Tournament\RoundHasBeenFinished' => [
29
            'App\Listeners\Tournament\Draw'
30
        ]
31
    ];
32
33
    /**
34
     * Register any other events for your application.
35
     * @name boot
36
     */
37
    public function boot()
38
    {
39
        parent::boot();
40
41
        //
42
    }
43
}
44