for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\TurboSms;
use Illuminate\Support\ServiceProvider;
class TurboSmsServiceProvider extends ServiceProvider
{
/**
* Register the application services.
*/
public function register()
$this->app->singleton(TurboSmsApi::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->singleton(TurboSmsApi::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.
$apiToken = $this->app['config']['services.turbosms.api_token'];
$sender = $this->app['config']['services.turbosms.sender'];
$client = new TurboSmsApi($apiToken, $sender, $this->app['config']['services.turbosms']);
return $client;
});
}
public function provides(): array
return [
TurboSmsApi::class,
];
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.