Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
21 | private function buildConfig(array $config = []) |
||
22 | { |
||
23 | // Merge our config with user config |
||
24 | $result = array_merge((include realpath(__DIR__ . '/../../config/quran.php')), $config); |
||
25 | |||
26 | // If function storage_path is exist (laravel), we update the path to laravel's storage path |
||
27 | if (function_exists('storage_path') && php_sapi_name() !== 'cli') { |
||
28 | $result['storage_path'] = storage_path('app' . DIRECTORY_SEPARATOR . $result['storage_path']); |
||
29 | } |
||
30 | |||
31 | return $result; |
||
32 | } |
||
33 | |||
45 | } |