Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
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 | }); |
|
56 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.