Code Duplication    Length = 10-10 lines in 2 locations

src/gte.php 1 location

@@ 12-21 (lines=10) @@
9
 *
10
 * @return mixed
11
 */
12
function gte()
13
{
14
    $args = func_get_args();
15
16
    $gte = function ($a, $b) {
17
        return $a >= $b;
18
    };
19
20
    return call_user_func_array(partial($gte), $args);
21
}
22

src/lte.php 1 location

@@ 12-21 (lines=10) @@
9
 *
10
 * @return mixed
11
 */
12
function lte()
13
{
14
    $args = func_get_args();
15
16
    $lte = function ($a, $b) {
17
        return $a <= $b;
18
    };
19
20
    return call_user_func_array(partial($lte), $args);
21
}
22