Passed
Pull Request — master (#32)
by Nasrul Hazim
10:28 queued 06:59
created

ProfileServiceProvider::boot()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 32
Code Lines 18

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 2
eloc 18
c 2
b 0
f 0
nc 2
nop 0
dl 0
loc 32
rs 9.6666
1
<?php
2
3
namespace CleaniqueCoders\Profile;
4
5
use CleaniqueCoders\Profile\Console\Commands\SeedProfileCommand;
6
use Spatie\LaravelPackageTools\Package;
7
use Spatie\LaravelPackageTools\PackageServiceProvider;
8
9
class ProfileServiceProvider extends PackageServiceProvider
10
{
11
    public function configurePackage(Package $package): void
12
    {
13
        $package->name('profile')
14
            ->hasConfigFile('profile')
15
            ->hasCommand(SeedProfileCommand::class)
16
            ->hasMigrations(
17
                'create_addresses_table',
18
                'create_banks_table',
19
                'create_countries_table',
20
                'create_emails_table',
21
                'create_phone_types_table',
22
                'create_phones_table',
23
                'create_websites_table',
24
            );
25
    }
26
}
27