| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function handle() |
||
| 26 | { |
||
| 27 | copy(__DIR__ . '/../../src/resources/stubs/RouteServiceProvider.stub', app_path('Providers/LaragenRouteServiceProvider.php')); |
||
| 28 | if (!is_dir('routes/backend')) { |
||
| 29 | @mkdir(base_path('routes/backend'), 0777, true); |
||
|
|
|||
| 30 | copy(__DIR__ . '/../../src/resources/stubs/Route.stub', base_path('routes/backend/web.php')); |
||
| 31 | copy(__DIR__ . '/../../src/resources/stubs/Route.stub', base_path('routes/backend/auth.php')); |
||
| 32 | } |
||
| 33 | if (!is_dir('routes/frontend')) { |
||
| 34 | @mkdir(base_path('routes/frontend'), 0777, true); |
||
| 35 | copy(__DIR__ . '/../../src/resources/stubs/Route.stub', base_path('routes/frontend/web.php')); |
||
| 36 | } |
||
| 39 |
If you suppress an error, we recommend checking for the error condition explicitly: