FullNameServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
A register() 0 3 1
1
<?php
2
3
namespace Angecode\LaravelFullName;
4
5
use Illuminate\Filesystem\Filesystem;
6
use Illuminate\Support\ServiceProvider;
7
use Angecode\LaravelFullName\Traits\CanPublish;
8
9
/**
10
 * Class FullNameServiceProvider.
11
 *
12
 * @@codeCoverageIgnore
13
 */
14
class FullNameServiceProvider extends ServiceProvider
15
{
16
    use CanPublish;
17
18
    /**
19
     * Bootstrap the application services.
20
     */
21
    public function boot(Filesystem $filesystem)
22
    {
23
        $this->publishes([
24
            __DIR__.'/../database/migrations/add_fullname_to_users_table.php.stub' => $this->getMigrationFileName($filesystem),
25
        ], 'migrations');
26
    }
27
28
    /**
29
     * Register the application services.
30
     */
31
    public function register()
32
    {
33
    }
34
}
35