Passed
Push — master ( 8dfbb6...e6fcd8 )
by Sérgio
03:07
created

gte.php ➔ gte()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 8
ccs 3
cts 3
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Prelude;
4
5
const gte = __NAMESPACE__.'\gte';
6
7
function gte(...$args)
8
{
9
    $gte = partial(function ($x, $y) {
10 2
        return $x >= $y;
11 2
    });
12
13 2
    return $gte(...$args);
14
}
15