| Conditions | 2 |
| Paths | 2 |
| Total Lines | 22 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 2 |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 18 | public function boot() |
|
| 34 | { |
||
| 35 | // configuration |
||
| 36 | 18 | $configPath = __DIR__.'/../config/laravel-security-checker.php'; |
|
| 37 | 18 | $this->publishes([ $configPath => $this->getConfigPath() ], 'config'); |
|
| 38 | |||
| 39 | // views |
||
| 40 | 18 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-security-checker'); |
|
| 41 | 18 | $this->publishes([ |
|
| 42 | 18 | __DIR__.'/../resources/views' => resource_path('views/vendor/laravel-security-checker'), |
|
| 43 | 18 | ], 'views'); |
|
| 44 | |||
| 45 | // translations |
||
| 46 | 18 | $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'laravel-security-checker'); |
|
| 47 | 18 | $this->publishes([ |
|
| 48 | 18 | __DIR__.'/../resources/lang' => resource_path('lang/vendor/laravel-security-checker'), |
|
| 49 | 18 | ], 'translations'); |
|
| 50 | |||
| 51 | 18 | if ($this->app->runningInConsole()) { |
|
| 52 | 18 | $this->commands([ |
|
| 53 | 18 | SecurityCommand::class, |
|
| 54 | 6 | SecurityMailCommand::class, |
|
| 55 | 6 | ]); |
|
| 69 |