CurrenciesServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 5
Bugs 0 Features 0
Metric Value
c 5
b 0
f 0
dl 0
loc 54
ccs 8
cts 8
cp 1
rs 10
wmc 3
lcom 1
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getBasePath() 0 4 1
A register() 0 7 1
A boot() 0 8 1
1
<?php namespace Arcanedev\Currencies;
2
3
use Arcanedev\Support\PackageServiceProvider;
4
5
/**
6
 * Class     CurrenciesServiceProvider
7
 *
8
 * @package  Arcanedev\Currencies
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class CurrenciesServiceProvider extends PackageServiceProvider
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Properties
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Package name.
19
     *
20
     * @var string
21
     */
22
    protected $package = 'currencies';
23
24
    /* ------------------------------------------------------------------------------------------------
25
     |  Getters & Setters
26
     | ------------------------------------------------------------------------------------------------
27
     */
28
    /**
29
     * Get the base path of the package.
30
     *
31
     * @return string
32
     */
33
    public function getBasePath()
34
    {
35
        return dirname(__DIR__);
36
    }
37
38
    /* ------------------------------------------------------------------------------------------------
39
     |  Main Functions
40 612
     | ------------------------------------------------------------------------------------------------
41
     */
42 612
    /**
43
     * Register the service provider.
44
     */
45
    public function register()
46
    {
47
        $this->registerConfig();
48
49
        $this->app->register(Providers\ManagerServiceProvider::class);
50
        $this->app->register(Providers\ValidationServiceProvider::class);
51
    }
52 612
53
    /**
54 612
     * Boot the service provider.
55
     */
56 612
    public function boot()
57 612
    {
58 612
        parent::boot();
59
60
        // Publishes
61
        $this->publishConfig();
62
        $this->publishTranslations();
63 612
    }
64
}
65