Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2.0054 |
Changes | 0 |
1 | <?php |
||
26 | 4 | public function boot(): void |
|
27 | { |
||
28 | 4 | $viewPath = __DIR__ . '/../resources/views'; |
|
29 | 4 | $this->loadViewsFrom($viewPath, 'opendox'); |
|
30 | |||
31 | 4 | $configPath = __DIR__ . '/../config/opendox.php'; |
|
32 | 4 | if (function_exists('config_path')) { |
|
33 | 4 | $publishPath = config_path('opendox.php'); |
|
34 | } else { |
||
35 | $publishPath = base_path('config/opendox.php'); |
||
36 | } |
||
37 | 4 | $this->publishes([$configPath => $publishPath], 'config'); |
|
38 | |||
39 | $this->app->router->group(['namespace' => 'Noitran\Opendox'], function ($router): void { |
||
40 | 4 | require __DIR__ . '/routes/routes.php'; |
|
41 | 4 | }); |
|
63 |