| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | public function appendPath($url_or_path, $name = '...') |
||
| 43 | { |
||
| 44 | if (is_array($url_or_path)) { |
||
| 45 | if (empty($url_or_path['name'])) { |
||
| 46 | // multiple paths |
||
| 47 | $this->paths = array_merge($this->paths, $url_or_path) ; |
||
| 48 | } else { |
||
| 49 | // array format (just a path) |
||
| 50 | $this->paths[] = $url_or_path ; |
||
| 51 | } |
||
| 52 | } else { |
||
| 53 | // separate format |
||
| 54 | $this->paths[] = array( 'url' => $url_or_path , 'name' => $name ) ; |
||
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 63 |