Completed
Push — master ( 347590...e0f246 )
by Sérgio
02:45
created

gt.php ➔ greater_than()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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