Passed
Push — master ( 03087a...f49b8e )
by Gabriel
01:58
created

application.php ➔ inflector()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 0
dl 0
loc 7
ccs 0
cts 3
cp 0
crap 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
if (!function_exists('inflector')) {
4
    /**
5
     * @return Nip\Inflector\Inflector
6
     */
7
    function inflector()
8
    {
9
        if (function_exists('app')) {
10
            return app('inflector');
11
        }
12
        return \Nip\Inflector\Inflector::instance();
13
    }
14
}
15