dev-think-one /
laravel-reviewsio-api
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Reviewsio; |
||
| 4 | |||
| 5 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
| 6 | { |
||
| 7 | 3 | public function boot() |
|
| 8 | { |
||
| 9 | 3 | if ($this->app->runningInConsole()) { |
|
| 10 | 3 | $this->publishes([ |
|
| 11 | 3 | __DIR__.'/../config/reviewsio.php' => config_path('reviewsio.php'), |
|
| 12 | 3 | ], 'config'); |
|
| 13 | |||
| 14 | 3 | $this->commands([ |
|
| 15 | 3 | // |
|
| 16 | 3 | ]); |
|
| 17 | } |
||
| 18 | } |
||
| 19 | |||
| 20 | 3 | public function register() |
|
| 21 | { |
||
| 22 | 3 | $this->mergeConfigFrom(__DIR__.'/../config/reviewsio.php', 'reviewsio'); |
|
| 23 | |||
| 24 | 3 | $this->app->bind(Reviewsio::class, function ($app) { |
|
|
0 ignored issues
–
show
|
|||
| 25 | 3 | return new Reviewsio( |
|
| 26 | 3 | config('reviewsio.api'), |
|
| 27 | 3 | ); |
|
| 28 | 3 | }); |
|
| 29 | } |
||
| 30 | } |
||
| 31 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.