Passed
Push — master ( 0bc69d...cc8e66 )
by Stephen
56s queued 13s
created

TrackingEventServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 27
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
1
<?php
2
3
namespace Sfneal\Tracking\Providers;
4
5
use Illuminate\Foundation\Support\Providers\EventServiceProvider;
6
use Sfneal\Tracking\Events\TrackActivityEvent;
7
use Sfneal\Tracking\Events\TrackTrafficEvent;
8
use Sfneal\Tracking\Listeners\TrackActivityListener;
9
use Sfneal\Tracking\Listeners\TrackTrafficListener;
10
11
class TrackingEventServiceProvider extends EventServiceProvider
12
{
13
    /**
14
     * The event listener mappings for the application.
15
     *
16
     * @var array
17
     */
18
    protected $listen = [
19
        // Activity Tracking
20
        TrackActivityEvent::class => [
21
            TrackActivityListener::class,
22
        ],
23
24
        // Traffic Tracking
25
        TrackTrafficEvent::class => [
26
            TrackTrafficListener::class,
27
        ],
28
    ];
29
30
    /**
31
     * Register any events for your application.
32
     *
33
     * @return void
34
     */
35
    public function boot()
36
    {
37
        parent::boot();
38
    }
39
}
40