laravel-notification-channels /
all-my-sms
| 1 | <?php |
||||
| 2 | |||||
| 3 | namespace NotificationChannels\AllMySms; |
||||
| 4 | |||||
| 5 | use GuzzleHttp\Client as HttpClient; |
||||
| 6 | use Illuminate\Notifications\ChannelManager; |
||||
| 7 | use Illuminate\Support\Facades\Notification; |
||||
| 8 | use Illuminate\Support\ServiceProvider; |
||||
| 9 | |||||
| 10 | class AllMySmsServiceProvider extends ServiceProvider |
||||
| 11 | { |
||||
| 12 | /** |
||||
| 13 | * Register the application services. |
||||
| 14 | */ |
||||
| 15 | public function register() |
||||
| 16 | { |
||||
| 17 | $this->app->bind(AllMySms::class, function ($app) { |
||||
|
0 ignored issues
–
show
|
|||||
| 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) { |
||||
|
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...
|
|||||
| 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) { |
||||
|
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...
|
|||||
| 34 | return $this->app->make(AllMySmsChannel::class); |
||||
| 35 | }); |
||||
| 36 | }); |
||||
| 37 | } |
||||
| 38 | } |
||||
| 39 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.