Issues (8)

src/LaravelCookieConsentServiceProvider.php (1 issue)

1
<?php
2
3
namespace W3designweb\LaravelCookieConsent;
4
5
use Illuminate\Routing\Router;
6
use Illuminate\Support\ServiceProvider;
7
8
class LaravelCookieConsentServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap the application events.
12
     *
13
     * @return void
14
     */
15
    public function boot(Router $router)
0 ignored issues
show
The parameter $router is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

15
    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.

Loading history...
16
    {
17
        $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'laravel-cookie-consent');
18
        $this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-cookie-consent');
19
20
        $this->publishes([__DIR__.'/../config/config.php' => config_path('laravel-cookie-consent.php')], 'config');
21
        $this->publishes([__DIR__.'/../resources/lang' => resource_path('lang/vendor/laravel-cookie-consent')], 'lang');
22
        $this->publishes([__DIR__.'/../resources/js' => public_path('vendor/laravel-cookie-consent')], 'public');
23
        $this->publishes([__DIR__.'/../resources/css' => public_path('vendor/laravel-cookie-consent')], 'public');
24
        $this->publishes([__DIR__.'/../resources/views' => resource_path('views/vendor/laravel-cookie-consent')], 'views');
25
    }
26
27
    /**
28
     * Register the service provider.
29
     *
30
     * @return void
31
     */
32
    public function register()
33
    {
34
        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'laravel-cookie-consent');
35
    }
36
}
37