for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\AllMySms;
use GuzzleHttp\Client as HttpClient;
use Illuminate\Notifications\ChannelManager;
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\ServiceProvider;
class AllMySmsServiceProvider extends ServiceProvider
{
/**
* Register the application services.
*/
public function register()
$this->app->bind(AllMySms::class, function ($app) {
$app
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
$this->app->bind(AllMySms::class, function (/** @scrutinizer ignore-unused */ $app) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return new AllMySms(
new HttpClient(),
$this->app['config']['services.all_my_sms']
);
});
$this->app->bind(AllMySmsChannel::class, function ($app) {
$this->app->bind(AllMySmsChannel::class, function (/** @scrutinizer ignore-unused */ $app) {
return new AllMySmsChannel(
$this->app->make(AllMySms::class),
$this->app['config']['services.all_my_sms.sender'],
$this->app['config']['services.all_my_sms.universal_to']
Notification::resolved(function (ChannelManager $service) {
$service->extend('all_my_sms', function ($app) {
$service->extend('all_my_sms', function (/** @scrutinizer ignore-unused */ $app) {
return $this->app->make(AllMySmsChannel::class);
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.