Completed
Push — master ( b5ad8c...a739bd )
by ARCANEDEV
06:46 queued 03:42
created

PackageServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Test Coverage

Coverage 50%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 2
cbo 1
dl 0
loc 41
ccs 2
cts 4
cp 0.5
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfigKey() 0 4 1
A config() 0 4 1
1
<?php namespace Arcanesoft\Core\Bases;
2
3
use Arcanedev\Support\PackageServiceProvider as ServiceProvider;
4
5
/**
6
 * Class     PackageServiceProvider
7
 *
8
 * @package  Arcanesoft\Core\Bases
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class PackageServiceProvider extends ServiceProvider
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Properties
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Vendor name.
19
     *
20
     * @var string
21
     */
22
    protected $vendor       = 'arcanesoft';
23
24
    /* ------------------------------------------------------------------------------------------------
25
     |  Getters & Setters
26
     | ------------------------------------------------------------------------------------------------
27
     */
28
    /**
29
     * Get config key.
30
     *
31
     * @return string
32
     */
33
    protected function getConfigKey()
34
    {
35
        return str_slug($this->vendor . ' ' .$this->package, '.');
36
    }
37
38
    /* ------------------------------------------------------------------------------------------------
39
     |  Other Functions
40
     | ------------------------------------------------------------------------------------------------
41
     */
42
    /**
43
     * Get the config repository instance.
44
     *
45
     * @return \Illuminate\Contracts\Config\Repository
46
     */
47 8
    protected function config()
48
    {
49 8
        return $this->app['config'];
50
    }
51
}
52