Completed
Push — master ( 04fd8b...0cf18b )
by ARCANEDEV
9s
created

CurrenciesServiceProvider::loadCurrencies()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 9
ccs 4
cts 4
cp 1
crap 1
rs 9.6666
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
     * Vendor name.
19
     *
20
     * @var string
21
     */
22
    protected $vendor  = 'arcanedev';
23
24
    /**
25
     * Package name.
26
     *
27
     * @var string
28
     */
29
    protected $package = 'currencies';
30
31
    /* ------------------------------------------------------------------------------------------------
32
     |  Getters & Setters
33
     | ------------------------------------------------------------------------------------------------
34
     */
35
    /**
36
     * Get the base path of the package.
37
     *
38
     * @return string
39
     */
40 468
    public function getBasePath()
41
    {
42 468
        return dirname(__DIR__);
43
    }
44
45
    /* ------------------------------------------------------------------------------------------------
46
     |  Main Functions
47
     | ------------------------------------------------------------------------------------------------
48
     */
49
    /**
50
     * Register the service provider.
51
     */
52 468
    public function register()
53
    {
54 468
        $this->registerConfig();
55
56 468
        $this->app->register(Providers\ManagerServiceProvider::class);
57 468
        $this->app->register(Providers\ValidationServiceProvider::class);
58 468
    }
59
60
    /**
61
     * Boot the service provider.
62
     */
63 468
    public function boot()
64
    {
65 468
        parent::boot();
66
67
        // Publishes
68 468
        $this->publishConfig();
69 468
        $this->publishTranslations();
70 468
    }
71
}
72