Issues (3)

src/AlertNotificationsServiceProvider.php (2 issues)

1
<?php
2
3
namespace Kevincobain2000\LaravelAlertNotifications;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class AlertNotificationsServiceProvider extends ServiceProvider
8
{
9
    const CONFIG_PATH = __DIR__.'/config/laravel_alert_notifications.php';
10
11
    /**
12
     * Indicates if loading of the provider is deferred.
13
     *
14
     * @var bool
15
     */
16
    protected $defer = false;
17
18
    /**
19
     * Bootstrap the application services.
20
     */
21
    public function boot()
22
    {
23
        $this->loadViewsFrom(__DIR__.'/views', 'laravel_alert_notifications');
24
25
        $this->publishes([
26
            self::CONFIG_PATH => base_path('config/laravel_alert_notifications.php'),
27
        ], 'config');
28
        $this->publishes([
29
            __DIR__.'/views' => resource_path('views/vendor/laravel_alert_notifications'),
30
        ], 'views');
31
32
        if (app() instanceof \Laravel\Lumen\Application) {
0 ignored issues
show
The type Laravel\Lumen\Application was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
33
            app()->configure('laravel_alert_notifications');
0 ignored issues
show
The method configure() does not exist on Illuminate\Container\Container. ( Ignorable by Annotation )

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

33
            app()->/** @scrutinizer ignore-call */ configure('laravel_alert_notifications');

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
34
        }
35
    }
36
37
    /**
38
     * Register the application services.
39
     */
40
    public function register()
41
    {
42
        $this->mergeConfigFrom(
43
            self::CONFIG_PATH,
44
            'laravel_alert_notifications'
45
        );
46
    }
47
}
48