AddressServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 2
b 0
f 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 9 2
1
<?php
2
3
namespace Sfneal\Address\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class AddressServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap any Address services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        // Publish migration file (if not already published)
17
        if (! class_exists('CreateAddressTable')) {
18
            $this->publishes([
19
                __DIR__.'/../../database/migrations/create_address_table.php.stub' => database_path(
20
                    'migrations/'.date('Y_m_d_His', time()).'_create_address_table.php'
21
                ),
22
            ], 'migration');
23
        }
24
    }
25
}
26