Application   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 5
c 1
b 0
f 0
dl 0
loc 26
ccs 6
cts 6
cp 1
rs 10

2 Methods

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