Conditions | 4 |
Paths | 6 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
54 | public function getAuthority($segments) |
||
55 | { |
||
56 | $segments = is_array($segments) ? implode('/', $segments) : $segments; |
||
57 | |||
58 | if ($this->exists($segments)) { |
||
59 | if (($authority = $this->getObject($segments)) instanceof Authority) { |
||
60 | return $authority; |
||
61 | } |
||
62 | } |
||
63 | |||
64 | return false; |
||
65 | } |
||
66 | } |