Completed
Push — master ( 5227c9...65121f )
by Maxime
04:44
created

Application   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 3
dl 0
loc 28
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBaseServiceProviders() 0 5 1
A storagePath() 0 6 2
1
<?php
2
3
namespace Distilleries\Expendable\Fondation;
4
5
6
use Distilleries\Expendable\ExpendableRoutingServiceProvider;
7
use Illuminate\Events\EventServiceProvider;
8
use Illuminate\Foundation\Application as BaseApplication;
9
10
class Application extends BaseApplication
11
{
12
13
14
    /**
15
     * Register all of the base service providers.
16
     *
17
     * @return void
18
     */
19
    protected function registerBaseServiceProviders()
20
    {
21
        $this->register(new EventServiceProvider($this));
22
        $this->register(new ExpendableRoutingServiceProvider($this));
23
    }
24
25
26
    /**
27
     * Override default application storage path.
28
     *
29
     * @return mixed
30
     */
31
    public function storagePath()
32
    {
33
        $path = env('STORAGE_PATH', $this->basePath . DIRECTORY_SEPARATOR . 'storage');
34
35
        return $this->storagePath ?: $path;
36
    }
37
}