GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#13)
by Tom
11:54
created

EnumServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 20
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 1
A register() 0 8 1
1
<?php
2
3
namespace Spatie\Enum\Laravel;
4
5
use Illuminate\Support\ServiceProvider;
6
use Spatie\Enum\Laravel\Commands\MakeEnum;
7
8
class EnumServiceProvider extends ServiceProvider
9
{
10 132
    public function boot()
11
    {
12 132
        $this->publishes([
13
            __DIR__.'/../resources/lang' => resource_path('lang/vendor/enum'),
14 132
        ]);
15 132
16
        $this->loadTranslationsFrom(__DIR__.'/../resources/lang/', 'enum');
17 132
    }
18
19
    public function register()
20
    {
21
        $this->app->bind('command.make:enum', MakeEnum::class);
22
23
        $this->commands([
24
            'command.make:enum',
25
        ]);
26
    }
27
}
28