| Conditions | 3 |
| Paths | 3 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function boot() |
||
| 13 | { |
||
| 14 | $this->loadTranslationsFrom(__DIR__.'/../translations', 'vouchers'); |
||
| 15 | |||
| 16 | if ($this->app->runningInConsole()) { |
||
| 17 | $this->publishes([ |
||
| 18 | __DIR__.'/../config/config.php' => config_path('vouchers.php'), |
||
| 19 | ], 'config'); |
||
| 20 | |||
| 21 | |||
| 22 | if (! class_exists('CreateVouchersTable')) { |
||
| 23 | $this->publishes([ |
||
| 24 | __DIR__.'/../database/migrations/create_vouchers_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_vouchers_table.php'), |
||
| 25 | ], 'migrations'); |
||
| 26 | } |
||
| 27 | |||
| 28 | $this->publishes([ |
||
| 29 | __DIR__.'/../translations' => resource_path('lang/vendor/vouchers'), |
||
| 30 | ], 'translations'); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 50 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.