| Conditions | 5 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | private function getPrefix(Config $config) |
||
| 36 | { |
||
| 37 | $parts = explode(':', $config->name); |
||
| 38 | |||
| 39 | if (1 === count($parts)) { |
||
| 40 | return; |
||
| 41 | } |
||
| 42 | |||
| 43 | if ($config->parent && 2 === count($parts)) { |
||
| 44 | array_shift($parts); |
||
| 45 | return implode('/', $parts); |
||
| 46 | } |
||
| 47 | |||
| 48 | if (!$config->parent) { |
||
| 49 | return implode(':', $parts); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | } |
||
| 53 |