Passed
Push — master ( d359a0...4c7365 )
by Vladimir
02:29
created

EventServiceProvider::register()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 7
ccs 0
cts 4
cp 0
crap 2
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Events;
6
7
use Illuminate\Support\ServiceProvider;
8
use Illuminate\Contracts\Events\Dispatcher;
9
use FondBot\Foundation\Listeners\HandleConversation;
10
11
class EventServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * Register the service provider.
15
     *
16
     * @return void
17
     */
18
    public function register(): void
19
    {
20
        /** @var Dispatcher $events */
21
        $events = $this->app['events'];
22
23
        $events->listen(MessageReceived::class, HandleConversation::class);
24
    }
25
}
26