public function getLimit($user_id)
    {
        if (empty($user_id) || !is_numeric($user_id)) {
            return (int) $this->config->get('user_address_limit_anonymous', 1);
        }

        return (int) $this->config->get('user_address_limit', 4);
    }
public function getLimit($user_id)
    {
        if (empty($user_id) || !is_numeric($user_id)) {
            return (int) $this->config->get('user_address_limit_anonymous', 1);
        }

        return (int) $this->config->get('user_address_limit', 4);
    }
public function getLimit ( $ user_id ) { if ( empty ( $ user_id ) || ! is_numeric ( $ user_id ) ) { return ( int ) $ this -> config -> get ( 'user_address_limit_anonymous' , 1 ) ; } return ( int ) $ this -> config -> get ( 'user_address_limit' , 4 ) ; }
Returns a number of addresses the user can have
@param string|integer
@return integer
Returns a number of addresses the user can have