Passed
Push — stable ( c117f7...5e5803 )
by Nuno
02:33
created

helpers.php ➔ config()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 3

Importance

Changes 0
Metric Value
cc 3
eloc 6
nc 3
nop 2
dl 0
loc 11
ccs 5
cts 5
cp 1
crap 3
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
$baseDir = 'foundation/src/Illuminate/Foundation/helpers.php';
4
5
if (file_exists(__DIR__."/../../$baseDir")) {
6
    require __DIR__."/../../$baseDir";
7
} elseif (file_exists(__DIR__."/../vendor/laravel-zero/$baseDir")) {
8
    require __DIR__."/../vendor/laravel-zero/$baseDir";
9
} else {
10
    require __DIR__."/../../../laravel-zero/$baseDir";
11
}
12