HandlerServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
ccs 4
cts 4
cp 1
crap 1
1
<?php
2
namespace agoalofalife\bpm\ServiceProviders;
3
4
5
use agoalofalife\bpm\Contracts\ServiceProvider;
6
use agoalofalife\bpm\Handlers\JsonHandler;
7
use agoalofalife\bpm\Handlers\XmlHandler;
8
9
10
class HandlerServiceProvider implements ServiceProvider
11
{
12
13 1
    public function register()
14
    {
15 1
        app()->bind(JsonHandler::class, JsonHandler::class);
16 1
        app()->bind(XmlHandler::class, XmlHandler::class);
17
    }
18
}