QueryProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 2
ccs 0
cts 1
cp 0
rs 10
cc 1
eloc 0
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AlgoWeb\PODataLaravel\Providers;
6
7
use AlgoWeb\PODataLaravel\Query\LaravelQuery as LaravelQuery;
8
use Illuminate\Support\ServiceProvider;
9
10
class QueryProvider extends ServiceProvider
11
{
12
    /**
13
     * Bootstrap the application services.  Post-boot.
14
     *
15
     * @return void
16
     */
17
    public function boot()
18
    {
19
        //
20
    }
21
22
    /**
23
     * Register the application services.  Boot-time only.
24
     *
25
     * @return void
26
     */
27
    public function register()
28
    {
29
        $this->app->/* @scrutinizer ignore-call */singleton(
30
            'odataquery',
31
            function () {
32
                return new LaravelQuery();
33
            }
34
        );
35
    }
36
}
37