| Conditions | 6 |
| Paths | 5 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function url($object, array $options = array()) |
||
| 38 | { |
||
| 39 | try { |
||
| 40 | $ret = parent::url($object, $options); |
||
| 41 | } catch (UnsupportedException $e) { |
||
| 42 | if (is_string($object)) { |
||
| 43 | // allows for referencing strings to be aliased separately. |
||
| 44 | $ret = $object; |
||
| 45 | } else { |
||
| 46 | throw $e; |
||
| 47 | } |
||
| 48 | } |
||
| 49 | if ((!isset($options['aliasing']) || $options['aliasing'] == false) |
||
| 50 | && $publicUrl = $this->aliasing->hasPublicAlias($ret) |
||
| 51 | ) { |
||
| 52 | $ret = $publicUrl; |
||
| 53 | } |
||
| 54 | return $ret; |
||
| 55 | } |
||
| 71 |