Completed
Push — master ( b112db...b25060 )
by Vladimir
10:13
created

EventServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 4
cts 4
cp 1
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 83
    public function register(): void
19
    {
20
        /** @var Dispatcher $events */
21 83
        $events = $this->app['events'];
22
23 83
        $events->listen(MessageReceived::class, HandleConversation::class);
24 83
    }
25
}
26