GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ServiceProvider   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 14
c 1
b 0
f 0
dl 0
loc 26
ccs 15
cts 15
cp 1
rs 10
wmc 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 5 1
A boot() 0 16 3
1
<?php
2
3
namespace Webparking\QueueEnsurer;
4
5
use Illuminate\Console\Scheduling\Schedule;
6
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
7
use Webparking\QueueEnsurer\Commands\EnsureProcesses;
8
9
class ServiceProvider extends BaseServiceProvider
10
{
11 7
    public function register(): void
12
    {
13 7
        $this->mergeConfigFrom(
0 ignored issues
show
Bug introduced by
The method mergeConfigFrom() does not exist on Webparking\QueueEnsurer\ServiceProvider. ( Ignorable by Annotation )

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

13
        $this->/** @scrutinizer ignore-call */ 
14
               mergeConfigFrom(

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...
14 7
            __DIR__ . '/../config/queue-ensurer.php',
15 7
            'queue-ensurer'
16
        );
17 7
    }
18
19 7
    public function boot(): void
20
    {
21 7
        $this->publishes([
0 ignored issues
show
Bug introduced by
The method publishes() does not exist on Webparking\QueueEnsurer\ServiceProvider. ( 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 7
            __DIR__ . '/../config/queue-ensurer.php' => config_path('queue-ensurer.php'),
23 7
        ], 'config');
24
25 7
        if ($this->app->runningInConsole()) {
0 ignored issues
show
Bug introduced by
The method runningInConsole() does not exist on App. ( Ignorable by Annotation )

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

25
        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...
26 7
            $this->commands([
0 ignored issues
show
Bug introduced by
The method commands() does not exist on Webparking\QueueEnsurer\ServiceProvider. ( Ignorable by Annotation )

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

26
            $this->/** @scrutinizer ignore-call */ 
27
                   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...
27 7
                EnsureProcesses::class,
28
            ]);
29
30 7
            if (config('queue-ensurer.schedule')) {
31
                $this->app->booted(function () {
0 ignored issues
show
Bug introduced by
The method booted() does not exist on App. ( Ignorable by Annotation )

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

31
                $this->app->/** @scrutinizer ignore-call */ 
32
                            booted(function () {

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...
32
                    /** @var Schedule $schedule */
33 7
                    $schedule = app(Schedule::class);
34 7
                    $schedule->command(EnsureProcesses::class)->everyMinute();
35 7
                });
36
            }
37
        }
38 7
    }
39
}
40