Code Duplication    Length = 3-3 lines in 2 locations

class/utility.php 2 locations

@@ 52-54 (lines=3) @@
49
                $default = (int)$default;
50
                $ret     = isset($global[$key]) ? filter_var($global[$key], FILTER_SANITIZE_NUMBER_INT) : false;
51
                if (isset($limit) && is_array($limit) && (false !== $ret)) {
52
                    if (array_key_exists('min', $limit)) {
53
                        $ret = ($ret >= $limit['min']) ? $ret : false;
54
                    }
55
                    if (array_key_exists('max', $limit)) {
56
                        $ret = ($ret <= $limit['max']) ? $ret : false;
57
                    }
@@ 55-57 (lines=3) @@
52
                    if (array_key_exists('min', $limit)) {
53
                        $ret = ($ret >= $limit['min']) ? $ret : false;
54
                    }
55
                    if (array_key_exists('max', $limit)) {
56
                        $ret = ($ret <= $limit['max']) ? $ret : false;
57
                    }
58
                }
59
                break;
60
        }