| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 17 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 9 | 
| CRAP Score | 4.0961 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 31 | 27 | private static function loadFromStore($path)  | 
            |
| 32 |     { | 
            ||
| 33 | 27 |         $vars = explode(".", $path); | 
            |
| 34 | 27 | $file = array_shift($vars);  | 
            |
| 35 | 27 | $config = self::$store[$file];  | 
            |
| 36 | |||
| 37 | 27 |         foreach ($vars as $var) { | 
            |
| 38 | 24 |             if (!is_array($config)) { | 
            |
| 39 | return null;  | 
            ||
| 40 | }  | 
            ||
| 41 | 24 |             if (!array_key_exists($var, $config)) { | 
            |
| 42 | return null;  | 
            ||
| 43 | }  | 
            ||
| 44 | 24 | $config = $config[$var];  | 
            |
| 45 | }  | 
            ||
| 46 | 27 | return $config;  | 
            |
| 47 | }  | 
            ||
| 48 | |||
| 56 |