for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Glorand\Drip\Laravel;
use Illuminate\Support\ServiceProvider;
class DripServiceProvider extends ServiceProvider
{
protected $defer = true;
public function register()
$this->app->bind('drip', 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('drip', 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 LaravelDrip(
config('laravel_drip.drip_account_id'),
config
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
/** @scrutinizer ignore-call */
config('laravel_drip.drip_api_key'),
config('laravel_drip.drip_user_agent')
);
});
$this->app->alias('drip', \Glorand\Drip\Laravel\DripContract::class);
}
public function boot()
$this->publishes([
__DIR__ . '/../config/laravel_drip.php' => config_path('laravel_drip.php'),
config_path
__DIR__ . '/../config/laravel_drip.php' => /** @scrutinizer ignore-call */ config_path('laravel_drip.php'),
]);
$this->mergeConfigFrom(__DIR__.'/../config/laravel_drip.php', 'laravel_drip');
public function provides()
return [
\Glorand\Drip\Laravel\DripContract::class,
'drip'
];
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.