EloquentServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 7

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 7
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
A register() 0 4 1
1
<?php
2
3
namespace App\Providers;
4
5
use App\Match;
6
use App\Tournament;
7
use App\TournamentTeam;
8
use App\Observers\MatchObserver;
9
use App\Observers\TournamentObserver;
10
use App\Observers\TournamentTeamObserver;
11
use Illuminate\Support\ServiceProvider;
12
13
/**
14
 * Class EloquentServiceProvider
15
 * @package App\Providers
16
 */
17
class EloquentServiceProvider extends ServiceProvider
18
{
19
    /**
20
     * Bootstrap the application services.
21
     *
22
     * @return void
23
     */
24
    public function boot()
25
    {
26
        Tournament::observe(new TournamentObserver);
27
        TournamentTeam::observe(new TournamentTeamObserver);
28
        Match::observe(new MatchObserver);
29
    }
30
31
    /**
32
     * Register the application services.
33
     *
34
     * @return void
35
     */
36
    public function register()
37
    {
38
        //
39
    }
40
}
41