Completed
Pull Request — master (#4)
by
unknown
04:46
created

EnumeratedServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 42.86%

Importance

Changes 0
Metric Value
dl 0
loc 19
ccs 3
cts 7
cp 0.4286
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
A register() 0 4 1
1
<?php
2
3
namespace DavidIanBonner\Enumerated;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class EnumeratedServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        $this->publishes([
17
            __DIR__ . '/../lang/enum.php' => resource_path('lang/en/enum.php'),
18
        ]);
19
    }
20
21 13
    public function register()
22
    {
23 13
        include_once __DIR__ . '/helpers.php';
24 13
    }
25
}
26