| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php namespace Xaoc303\BattleCalc; |
||
| 34 | private static function getArrayFromFile($file, $keys) |
||
| 35 | { |
||
| 36 | $get = function() use ($file) { |
||
| 37 | return include $file; |
||
| 38 | }; |
||
| 39 | $return = $get(); |
||
| 40 | unset($keys[0]); |
||
| 41 | |||
| 42 | foreach ($keys as $v) { |
||
| 43 | if (isset($return[$v])) { |
||
| 44 | $return = $return[$v]; |
||
| 45 | } |
||
| 46 | } |
||
| 47 | return $return; |
||
| 48 | } |
||
| 49 | } |