ProfileServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 12
dl 0
loc 15
c 2
b 0
f 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A configurePackage() 0 13 1
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