for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Rezahmady\Smsir;
use Illuminate\Support\ServiceProvider;
class SmsirServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
// Bootstrap code here.
}
* Register the application services.
public function register()
$this->mergeConfigFrom(__DIR__ . '/../configs/smsir.php', 'smsir');
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__ . '/../configs/smsir.php' => config_path('smsir.php'),
config_path
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
__DIR__ . '/../configs/smsir.php' => /** @scrutinizer ignore-call */ config_path('smsir.php'),
], 'config');
$this->app->bind('smsir', 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('smsir', 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 SmsirClient(config('smsir.api-key'), config('smsir.secret-key'), config('smsir.line-number'), config('smsir.request-timeout'));
config
return new SmsirClient(/** @scrutinizer ignore-call */ config('smsir.api-key'), config('smsir.secret-key'), config('smsir.line-number'), config('smsir.request-timeout'));
});