src/Zend/Http/UserAgent.php
protected function _validateLoaderType($type)
    {
        $type = strtolower($type);
        if (!in_array($type, $this->_loaderTypes)) {
            $types = implode(', ', $this->_loaderTypes);

            throw new Zend_Http_UserAgent_Exception(sprintf(
                'Expected one of "%s" for plugin loader type; received "%s"',
                $types,
                (string) $type
            ));
        }
        return $type;
    }
protected function _validateLoaderType($type)
    {
        $type = strtolower($type);
        if (!in_array($type, $this->_loaderTypes)) {
            $types = implode(', ', $this->_loaderTypes);

            throw new Zend_Http_UserAgent_Exception(sprintf(
                'Expected one of "%s" for plugin loader type; received "%s"',
                $types,
                (string) $type
            ));
        }
        return $type;
    }
protected function _validateLoaderType ( $ type ) { $ type = strtolower ( $ type ) ; if ( ! in_array ( $ type , $ this -> _loaderTypes ) ) { $ types = implode ( ', ' , $ this -> _loaderTypes ) ; throw new Zend_Http_UserAgent_Exception ( sprintf ( 'Expected one of "%s" for plugin loader type; received "%s"' , $ types , ( string ) $ type ) ) ; } return $ type ; }
Validate a plugin loader type

Verifies that it is in {@link $_loaderTypes}, and returns a normalized
version of the type.

@param  string $type
@return string
@throws Zend_Http_UserAgent_Exception on invalid type
Validate a plugin loader type