neptunesoftware /
laravel-invoice
| 1 | <?php |
||||
| 2 | |||||
| 3 | namespace NeptuneSoftware\Invoice\Providers; |
||||
| 4 | |||||
| 5 | use Illuminate\Support\ServiceProvider; |
||||
| 6 | use NeptuneSoftware\Invoice\Services\BillService; |
||||
| 7 | use NeptuneSoftware\Invoice\Interfaces\BillServiceInterface; |
||||
| 8 | use NeptuneSoftware\Invoice\Interfaces\InvoiceServiceInterface; |
||||
| 9 | use NeptuneSoftware\Invoice\Services\InvoiceService; |
||||
| 10 | |||||
| 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) { |
||||
|
0 ignored issues
–
show
|
|||||
| 39 | 24 | return new InvoiceService(); |
|||
| 40 | 57 | }); |
|||
| 41 | $this->app->bind(BillServiceInterface::class, function ($app) { |
||||
|
0 ignored issues
–
show
The parameter
$app is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. Loading history...
|
|||||
| 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() |
|||
| 52 | { |
||||
| 53 | 57 | $this->mergeConfigFrom(__DIR__ . '/../../config/invoice.php', 'invoice'); |
|||
| 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.