| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3.3332 |
| Changes | 3 | ||
| Bugs | 1 | Features | 2 |
| 1 | <?php |
||
| 21 | 87 | private function buildConfig(array $config = []) |
|
| 22 | { |
||
| 23 | // Merge our config with user config |
||
| 24 | 87 | $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 | 87 | if (function_exists('storage_path') && php_sapi_name() !== 'cli') { |
|
| 28 | $result['storage_path'] = storage_path('app'.DIRECTORY_SEPARATOR.$result['storage_path']); |
||
| 29 | } |
||
| 30 | |||
| 31 | 87 | return $result; |
|
| 32 | } |
||
| 33 | |||
| 63 |