gt.php ➔ gt()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 6
Bugs 0 Features 4
Metric Value
cc 1
eloc 5
c 6
b 0
f 4
nc 1
nop 0
dl 0
loc 10
ccs 4
cts 4
cp 1
crap 1
rs 9.4285
1
<?php
2
3
namespace Sergiors\Functional;
4
5
const gt = '\Sergiors\Functional\gt';
6
7
/**
8
 * Greater than
9
 *
10
 * @author Sérgio Rafael Siqueira <[email protected]>
11
 *
12
 * @return mixed
13
 */
14
function gt(/* ...$args */)
15
{
16 1
    $args = func_get_args();
17
18
    $gt = function ($a, $b) {
19 1
        return $a > $b;
20 1
    };
21
22 1
    return call_user_func_array(partial($gt), $args);
23
}
24