Issues (14)

src/Providers/LaraStartServiceProvider.php (4 issues)

Labels
Severity
1
<?php
2
3
namespace InnoFlash\LaraStart\Providers;
4
5
use Illuminate\Routing\ResponseFactory;
6
use Illuminate\Support\ServiceProvider;
7
use InnoFlash\LaraStart\Console\Commands\MakeServiceCommand;
8
use InnoFlash\LaraStart\Mixins\ResponseMixin;
9
use InnoFlash\LaraStart\Services\AuthService;
10
11
class LaraStartServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * Bootstrap services.
15
     *
16
     * @return void
17
     * @throws \ReflectionException
18
     */
19
    public function boot()
20
    {
21
        ResponseFactory::mixin(new ResponseMixin());
22
23
        $this->mergeConfigFrom(__DIR__.'/../../config/larastart.php', 'larastart');
0 ignored issues
show
The method mergeConfigFrom() does not exist on InnoFlash\LaraStart\Prov...araStartServiceProvider. ( Ignorable by Annotation )

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

23
        $this->/** @scrutinizer ignore-call */ 
24
               mergeConfigFrom(__DIR__.'/../../config/larastart.php', 'larastart');

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...
24
25
        $this->publishes([
0 ignored issues
show
The method publishes() does not exist on InnoFlash\LaraStart\Prov...araStartServiceProvider. ( Ignorable by Annotation )

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

25
        $this->/** @scrutinizer ignore-call */ 
26
               publishes([

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...
26
            __DIR__.'/../../config/larastart.php' => config_path('larastart.php'),
27
        ], 'larastart-config');
28
29
        $this->commands([
0 ignored issues
show
The method commands() does not exist on InnoFlash\LaraStart\Prov...araStartServiceProvider. ( Ignorable by Annotation )

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

29
        $this->/** @scrutinizer ignore-call */ 
30
               commands([

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...
30
            MakeServiceCommand::class,
31
        ]);
32
    }
33
34
    /**
35
     * Register services.
36
     *
37
     * @return void
38
     */
39
    public function register()
40
    {
41
        $this->app->singleton(AuthService::class);
0 ignored issues
show
The method singleton() does not exist on Tests\Laravel\App. ( Ignorable by Annotation )

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

41
        $this->app->/** @scrutinizer ignore-call */ 
42
                    singleton(AuthService::class);

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...
42
    }
43
}
44