| Conditions | 5 |
| Paths | 5 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | function query ($name) { |
||
| 31 | if (is_array($name)) { |
||
| 32 | foreach ($name as &$n) { |
||
| 33 | if (!isset($this->query[$n])) { |
||
| 34 | return false; |
||
| 35 | } |
||
| 36 | $n = $this->query[$n]; |
||
| 37 | } |
||
| 38 | return $name; |
||
| 39 | } |
||
| 40 | /** @noinspection OffsetOperationsInspection */ |
||
| 41 | return isset($this->query[$name]) ? $this->query[$name] : false; |
||
| 42 | } |
||
| 43 | } |
||
| 44 |