Conditions | 5 |
Paths | 5 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
45 | function data ($name) { |
||
46 | if (is_array($name)) { |
||
47 | foreach ($name as &$n) { |
||
48 | if (!isset($this->data[$n])) { |
||
49 | return false; |
||
50 | } |
||
51 | $n = $this->data[$n]; |
||
52 | } |
||
53 | return $name; |
||
54 | } |
||
55 | /** @noinspection OffsetOperationsInspection */ |
||
56 | return isset($this->data[$name]) ? $this->data[$name] : false; |
||
57 | } |
||
58 | } |
||
59 |