| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public function inflect(Route $route) |
||
| 46 | { |
||
| 47 | $file = $route->attributes['controller'].'/'; |
||
| 48 | $file .= $route->attributes['action']; |
||
| 49 | $filtered = Text::camelCaseToSeparator($file, '_'); |
||
| 50 | $filtered = str_replace('_', '-', strtolower($filtered)); |
||
| 51 | return "{$filtered}.{$this->extension}"; |
||
| 52 | } |
||
| 53 | } |