for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace W3designweb\LaravelCookieConsent;
use Illuminate\Routing\Router;
use Illuminate\Support\ServiceProvider;
class LaravelCookieConsentServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot(Router $router)
$router
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function boot(/** @scrutinizer ignore-unused */ Router $router)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'laravel-cookie-consent');
$this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-cookie-consent');
$this->publishes([__DIR__.'/../config/config.php' => config_path('laravel-cookie-consent.php')], 'config');
config_path
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->publishes([__DIR__.'/../config/config.php' => /** @scrutinizer ignore-call */ config_path('laravel-cookie-consent.php')], 'config');
$this->publishes([__DIR__.'/../resources/lang' => resource_path('lang/vendor/laravel-cookie-consent')], 'lang');
resource_path
$this->publishes([__DIR__.'/../resources/lang' => /** @scrutinizer ignore-call */ resource_path('lang/vendor/laravel-cookie-consent')], 'lang');
$this->publishes([__DIR__.'/../resources/js' => public_path('vendor/laravel-cookie-consent')], 'public');
public_path
$this->publishes([__DIR__.'/../resources/js' => /** @scrutinizer ignore-call */ public_path('vendor/laravel-cookie-consent')], 'public');
$this->publishes([__DIR__.'/../resources/css' => public_path('vendor/laravel-cookie-consent')], 'public');
$this->publishes([__DIR__.'/../resources/views' => resource_path('views/vendor/laravel-cookie-consent')], 'views');
}
* Register the service provider.
public function register()
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'laravel-cookie-consent');
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.