src/Auth/HybridAuthAuthenticate.php
protected function _checkProvider($data)
    {
        $fields = $this->_config['fields'];

        if (empty($data[$fields['provider']])) {
            return false;
        }

        $provider = $data[$fields['provider']];

        if ($provider === 'OpenID' && empty($data[$fields['openid_identifier']])) {
            return false;
        }

        return $provider;
    }
protected function _checkProvider($data)
    {
        $fields = $this->_config['fields'];

        if (empty($data[$fields['provider']])) {
            return false;
        }

        $provider = $data[$fields['provider']];

        if ($provider === 'OpenID' && empty($data[$fields['openid_identifier']])) {
            return false;
        }

        return $provider;
    }
protected function _checkProvider ( $ data ) { $ fields = $ this -> _config [ 'fields' ] ; if ( empty ( $ data [ $ fields [ 'provider' ] ] ) ) { return false ; } $ provider = $ data [ $ fields [ 'provider' ] ] ; if ( $ provider === 'OpenID' && empty ( $ data [ $ fields [ 'openid_identifier' ] ] ) ) { return false ; } return $ provider ; }
Checks whether provider is supplied.

@param array $data Data array to check.
@return string|bool Provider name if it exists, false if required fields have
not been supplied.
Checks whether provider is supplied .