Test Failed
Push — stable ( 535a20...74df7e )
by Nuno
37s
created

ServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 9 1
1
<?php
2
3
namespace LaravelZero\Framework\Providers\Scheduler;
4
5
use Illuminate\Console\Scheduling\Schedule;
6
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
7
8
/**
9
 * This is the Zero Framework Scheduler service provider class.
10
 *
11
 * @author Nuno Maduro <[email protected]>
12
 */
13
class ServiceProvider extends BaseServiceProvider
14
{
15
    /**
16
     * Register Scheduler service.
17
     *
18
     * @return void
19
     */
20
    public function register(): void
21
    {
22
        $this->app->singleton(
23
            Schedule::class,
24
            function ($app) {
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
25
                return new Schedule;
26
            }
27
        );
28
    }
29
}
30