Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | public static function extractNestedDataFromArray($args = []) |
||
8 | { |
||
9 | if (count($args) < 2) { |
||
10 | return self::returnEmptyStringOrFirstArgument($args); |
||
11 | } |
||
12 | $key = array_pop($args); |
||
13 | $data = self::returnFirstArgumentOrNestedData($args); |
||
14 | return self::accessArrayOrObject($key, $data); |
||
15 | } |
||
16 | |||
49 |