Completed
Push — master ( d41a26...1c5167 )
by Gabriel
04:02
created

url()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 0
cts 1
cp 0
crap 2
1
<?php
2
3
namespace Nip;
4
5
if (!function_exists('url')) {
6
    /** @noinspection PhpFunctionNamingConventionInspection
7
     *
8
     * Get Url Generator
9
     * @return \Nip\Router\Generator\UrlGenerator
10
     */
11
    function url()
12
    {
13
        return app('url');
0 ignored issues
show
Bug introduced by
The function app was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

13
        return /** @scrutinizer ignore-call */ app('url');
Loading history...
14
    }
15
}
16