| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 28 | 14 | protected function configureRoutes(RoutingConfigurator $routes): void |
|
| 29 | { |
||
| 30 | 14 | $routes->import('../config/{routes}/'.$this->environment.'/*.yaml'); |
|
| 31 | 14 | $routes->import('../config/{routes}/*.yaml'); |
|
| 32 | 14 | ||
| 33 | 14 | if (is_file(\dirname(__DIR__).'/config/routes.yaml')) { |
|
| 34 | $routes->import('../config/routes.yaml'); |
||
| 35 | } else { |
||
| 36 | 14 | $routes->import('../config/{routes}.php'); |
|
| 37 | } |
||
| 40 |