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
|
|||||
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'); |
||||
0 ignored issues
–
show
The function
config_path was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
21 | $this->publishes([__DIR__.'/../resources/lang' => resource_path('lang/vendor/laravel-cookie-consent')], 'lang'); |
||||
0 ignored issues
–
show
The function
resource_path was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
22 | $this->publishes([__DIR__.'/../resources/js' => public_path('vendor/laravel-cookie-consent')], 'public'); |
||||
0 ignored issues
–
show
The function
public_path was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
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 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.