Issues (14)

src/LaravelEntityServiceProvider.php (4 issues)

Labels
Severity
1
<?php
2
3
namespace BukanKalengKaleng\LaravelEntity;
4
5
use BukanKalengKaleng\LaravelEntity\Console\Commands\EntityMake;
6
use Illuminate\Support\ServiceProvider;
7
8
class LaravelEntityServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap services.
12
     *
13
     * @return void
14
     */
15
    public function boot()
16
    {
17
        if ($this->app->runningInConsole()) {
0 ignored issues
show
The method runningInConsole() 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

17
        if ($this->app->/** @scrutinizer ignore-call */ runningInConsole()) {

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...
18
            $this->commands([EntityMake::class]);
0 ignored issues
show
The method commands() does not exist on BukanKalengKaleng\Larave...elEntityServiceProvider. ( Ignorable by Annotation )

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

18
            $this->/** @scrutinizer ignore-call */ 
19
                   commands([EntityMake::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...
19
        }
20
21
        $this->publishes([
0 ignored issues
show
The method publishes() does not exist on BukanKalengKaleng\Larave...elEntityServiceProvider. ( Ignorable by Annotation )

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

21
        $this->/** @scrutinizer ignore-call */ 
22
               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...
22
            __DIR__.'/../config/entity.php' => config_path('entity.php'),
23
        ], 'laravel-entity');
24
25
        $this->mergeConfigFrom(__DIR__.'/../config/entity.php', 'entity');
0 ignored issues
show
The method mergeConfigFrom() does not exist on BukanKalengKaleng\Larave...elEntityServiceProvider. ( 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
               mergeConfigFrom(__DIR__.'/../config/entity.php', 'entity');

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
    }
27
28
    /**
29
     * Register services.
30
     *
31
     * @return void
32
     */
33
    public function register()
34
    {
35
        //
36
    }
37
}
38