| Total Complexity | 2 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class InvoiceServiceProvider extends ServiceProvider |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Perform post-registration booting of services. |
||
| 15 | * |
||
| 16 | * @return void |
||
| 17 | */ |
||
| 18 | 57 | public function boot() |
|
| 19 | { |
||
| 20 | 57 | $sourceViewsPath = __DIR__ . '/../../resources/views'; |
|
| 21 | 57 | $this->loadViewsFrom($sourceViewsPath, 'invoice'); |
|
| 22 | |||
| 23 | 57 | $this->publishes([ |
|
| 24 | 57 | $sourceViewsPath => resource_path('views/vendor/invoice'), |
|
| 25 | 57 | ], 'views'); |
|
| 26 | |||
| 27 | // Publish a config file |
||
| 28 | 57 | $this->publishes([ |
|
| 29 | 57 | __DIR__ . '/../../config/invoice.php' => config_path('invoice.php'), |
|
| 30 | 57 | ], 'config'); |
|
| 31 | |||
| 32 | // Publish migrations |
||
| 33 | 57 | $this->publishes([ |
|
| 34 | __DIR__ . '/../../database/migrations/2017_06_17_163005_create_invoices_tables.php' |
||
| 35 | 57 | => database_path('migrations/2017_06_17_163005_create_invoices_tables.php'), |
|
| 36 | 57 | ], 'migrations'); |
|
| 37 | |||
| 38 | $this->app->bind(InvoiceServiceInterface::class, function ($app) { |
||
|
|
|||
| 39 | 24 | return new InvoiceService(); |
|
| 40 | 57 | }); |
|
| 41 | $this->app->bind(BillServiceInterface::class, function ($app) { |
||
| 42 | 24 | return new BillService(); |
|
| 43 | 57 | }); |
|
| 44 | 57 | } |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Register any package services. |
||
| 48 | * |
||
| 49 | * @return void |
||
| 50 | */ |
||
| 51 | 57 | public function register() |
|
| 54 | 57 | } |
|
| 55 | } |
||
| 56 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.