Conditions | 5 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 5.9256 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
29 | 2 | protected function initVariablesFromConfig() |
|
30 | { |
||
31 | 2 | $configKey = 'media-library.contraints.' . $this->getName(); |
|
|
|||
32 | |||
33 | 2 | if (function_exists('config') && function_exists('app') && app()->has('config')) { |
|
34 | 2 | if (config()->has($configKey)) { |
|
35 | $variables = config()->get($configKey); |
||
36 | $this->applyVariables($variables); |
||
37 | } |
||
41 |