Application::storagePath()   A
last analyzed

Complexity

Conditions 2
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
cc 2
nc 1
nop 0
crap 2
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
}