rezahmady /
smsir
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Rezahmady\Smsir; |
||
| 4 | |||
| 5 | use Illuminate\Support\ServiceProvider; |
||
| 6 | |||
| 7 | class SmsirServiceProvider extends ServiceProvider |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Bootstrap the application services. |
||
| 11 | */ |
||
| 12 | public function boot() |
||
| 13 | { |
||
| 14 | // Bootstrap code here. |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Register the application services. |
||
| 19 | */ |
||
| 20 | public function register() |
||
| 21 | { |
||
| 22 | $this->mergeConfigFrom(__DIR__ . '/../configs/smsir.php', 'smsir'); |
||
| 23 | if ($this->app->runningInConsole()) { |
||
| 24 | $this->publishes([ |
||
| 25 | __DIR__ . '/../configs/smsir.php' => config_path('smsir.php'), |
||
| 26 | ], 'config'); |
||
| 27 | } |
||
| 28 | $this->app->bind('smsir', function ($app) { |
||
|
0 ignored issues
–
show
|
|||
| 29 | return new SmsirClient(config('smsir.api-key'), config('smsir.secret-key'), config('smsir.line-number'), config('smsir.request-timeout')); |
||
| 30 | }); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.