Passed
Push — master ( c31c70...a4df8d )
by Tom
05:42 queued 03:39
created

RestfulServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
namespace TomHart\Restful;
4
5
use Illuminate\Routing\ResourceRegistrar;
6
use Illuminate\Support\ServiceProvider;
7
use TomHart\Restful\Routing\RestfulResourceRegistrar;
8
9
class RestfulServiceProvider extends ServiceProvider
10
{
11
12
    /**
13
     * Bind the resource registrar
14
     * @return void
15
     */
16
    public function register(): void
17
    {
18
        parent::register();
19
20
        $this->app->bind(ResourceRegistrar::class, RestfulResourceRegistrar::class);
21
    }
22
}
23