Passed
Push — master ( 930acb...b95699 )
by Nasrul Hazim
20:22 queued 09:36
created

ProfileServiceProvider::configurePackage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 11
nc 1
nop 1
dl 0
loc 13
c 0
b 0
f 0
cc 1
rs 9.9
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