for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\Smspoh;
use GuzzleHttp\Client as HttpClient;
use Illuminate\Notifications\ChannelManager;
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\ServiceProvider;
class SmspohServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
}
* Register the application services.
public function register()
$this->app->singleton(SmspohApi::class, static 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->singleton(SmspohApi::class, static 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 SmspohApi(config('services.smspoh.token'), new HttpClient());
});
Notification::resolved(function (ChannelManager $service) {
$service->extend('smspoh', function ($app) {
return new SmspohChannel($app[SmspohApi::class], $this->app['config']['services.smspoh.sender']);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.