| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function register() |
||
| 16 | { |
||
| 17 | $this->app->bind(AllMySms::class, function ($app) { |
||
|
|
|||
| 18 | return new AllMySms( |
||
| 19 | new HttpClient(), |
||
| 20 | $this->app['config']['services.all_my_sms'] |
||
| 21 | ); |
||
| 22 | }); |
||
| 23 | |||
| 24 | $this->app->bind(AllMySmsChannel::class, function ($app) { |
||
| 25 | return new AllMySmsChannel( |
||
| 26 | $this->app->make(AllMySms::class), |
||
| 27 | $this->app['config']['services.all_my_sms.sender'], |
||
| 28 | $this->app['config']['services.all_my_sms.universal_to'] |
||
| 29 | ); |
||
| 30 | }); |
||
| 31 | |||
| 32 | Notification::resolved(function (ChannelManager $service) { |
||
| 33 | $service->extend('all_my_sms', function ($app) { |
||
| 34 | return $this->app->make(AllMySmsChannel::class); |
||
| 35 | }); |
||
| 39 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.