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

EventServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 7 1
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