| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | private function getPrefix(Config $config) |
||
| 34 | { |
||
| 35 | $parts = explode(':', $config->name); |
||
| 36 | if ($config->parent && 2 === count($parts)) { |
||
| 37 | // nested route that contains 'App:* |
||
| 38 | array_shift($parts); |
||
| 39 | } |
||
| 40 | |||
| 41 | return strtolower(str_replace(array('/', '\\', ':'), '_', implode('_', $parts))); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |