| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1.125 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 10 | public function register() |
|
| 23 | { |
||
| 24 | $this->app->singleton(SmspohApi::class, static function ($app) { |
||
|
|
|||
| 25 | return new SmspohApi(config('services.smspoh.token'), new HttpClient()); |
||
| 26 | 10 | }); |
|
| 27 | |||
| 28 | Notification::resolved(function (ChannelManager $service) { |
||
| 29 | $service->extend('smspoh', function ($app) { |
||
| 30 | return new SmspohChannel($app[SmspohApi::class], $this->app['config']['services.smspoh.sender']); |
||
| 31 | }); |
||
| 35 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.