Completed
Branch develop (f86c92)
by Max
05:48
created

AppServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 2
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace NFLScores\Providers;
4
5
use DateTime;
6
use DateTimeZone;
7
use Illuminate\Support\ServiceProvider;
8
use NFLScores\Http\NFLHttpClient;
9
use NFLScores\Models\NFL;
10
11
class AppServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * Register any application services.
15
     */
16
    public function register(): void
17
    {
18
        $this->app->bind(NFL::class, function ($app) {
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed. ( Ignorable by Annotation )

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

18
        $this->app->bind(NFL::class, function (/** @scrutinizer ignore-unused */ $app) {

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

Loading history...
19
            return new NFL(new NFLHttpClient(), new DateTime('now', new DateTimeZone('US/Eastern')));
20
        });
21
    }
22
}
23