for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ako\Shorturl;
use Illuminate\Support\ServiceProvider;
class ShorturlServiceProvider extends ServiceProvider
{
/**
* Register bindings in the container.
*
* @return void
*/
public function register()
$this->app->singleton('shorturl', 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('shorturl', 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 resolve("Ako\Shorturl\Shorturl");
});
$this->mergeConfigFrom(__DIR__ . '/../config/shorturl.php', 'shorturl');
}
public function boot()
$this->publishes([
__DIR__.'/../config/shorturl.php' => config_path('shorturl.php')
]);
$this->loadMigrationsFrom(__DIR__.'/../migrations');
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.