| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 53 | static protected function getConfigVar($type, $default = null) |
||
| 54 | { |
||
| 55 | if (!function_exists('config')) { |
||
| 56 | return $default; |
||
| 57 | } |
||
| 58 | $varName = 'media-library.media_models.' . $type; |
||
| 59 | $config = config(); |
||
| 60 | if ($config->has($varName)) { |
||
| 61 | return $config->get($varName); |
||
| 62 | } |
||
| 63 | return $default; |
||
| 64 | } |
||
| 66 |