src/Model/Main.php
private function isX()
    {
        $arguments = func_get_args();
        $x = $arguments[0];
        
        if (count($arguments) < 2) {
            return false;
        }

        if (empty($this->$x->name)) {
            return false;
        }
    
        if ($this->$x->name != $arguments[1]) {
            return false;
        }
    
        if (count($arguments) >= 4) {
            if (empty($this->$x->version)) {
                return false;
            }

            if (!$this->$x->version->is($arguments[2], $arguments[3])) {
                return false;
            }
        }

        return true;
    }
private function isX()
    {
        $arguments = func_get_args();
        $x = $arguments[0];
        
        if (count($arguments) < 2) {
            return false;
        }

        if (empty($this->$x->name)) {
            return false;
        }
    
        if ($this->$x->name != $arguments[1]) {
            return false;
        }
    
        if (count($arguments) >= 4) {
            if (empty($this->$x->version)) {
                return false;
            }

            if (!$this->$x->version->is($arguments[2], $arguments[3])) {
                return false;
            }
        }

        return true;
    }
private function isX ( ) { $ arguments = func_get_args ( ) ; $ x = $ arguments [ 0 ] ; if ( count ( $ arguments ) < 2 ) { return false ; } if ( empty ( $ this -> $ x -> name ) ) { return false ; } if ( $ this -> $ x -> name != $ arguments [ 1 ] ) { return false ; } if ( count ( $ arguments ) >= 4 ) { if ( empty ( $ this -> $ x -> version ) ) { return false ; } if ( ! $ this -> $ x -> version -> is ( $ arguments [ 2 ] , $ arguments [ 3 ] ) ) { return false ; } } return true ; }
Check the name of a property and optionally is a specific version

@internal

@param  string   The name of the property, such as 'browser', 'engine' or 'os'
@param  string   The name of the browser that is checked
@param  string   Optional, the operator, must be <, <=, =, >= or >
@param  mixed    Optional, the value, can be an integer, float or string with a version number

@return boolean
Check the name of a property and optionally is a specific version