rql()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Noitran\RQL {
6
    use Noitran\RQL\Exceptions\RuntimeException;
7
    use Noitran\RQL\Services\RQLService;
8
9
    if (! \function_exists('rql')) {
10
        /**
11
         * Get default RQL service.
12
         *
13
         * @throws RuntimeException
14
         *
15
         * @return RQLService
16
         */
17
        function rql()
18
        {
19
            return app('rql');
0 ignored issues
show
Bug Best Practice introduced by
The expression return app('rql') also could return the type Illuminate\Contracts\Foundation\Application which is incompatible with the documented return type Noitran\RQL\Services\RQLService.
Loading history...
20
        }
21
    }
22
}
23