QueryProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 23
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 2 1
A register() 0 6 1
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