EventServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Foundation\Providers;
6
7
use FondBot\Events\MessageReceived;
8
use Illuminate\Contracts\Events\Dispatcher;
9
use FondBot\Foundation\Listeners\HandleConversation;
10
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
11
12
class EventServiceProvider extends ServiceProvider
13
{
14
    /**
15
     * Register the service provider.
16
     *
17
     * @return void
18
     */
19
    public function register(): void
20
    {
21
        parent::register();
22
23
        /** @var Dispatcher $events */
24
        $events = $this->app['events'];
25
26
        $events->listen(MessageReceived::class, HandleConversation::class);
27
    }
28
}
29