Permalink
Browse files

Fixed misspellings of "authentication" and "valid"

  • Loading branch information...
1 parent 34fffa7 commit 425c0007eea7c6185c2d69542806c722d6787ab0 William Faulk committed Dec 29, 2012
Showing with 66 additions and 66 deletions.
  1. +1 −1 additional-providers/hybridauth-disqus/Providers/Disqus.php
  2. +1 −1 additional-providers/hybridauth-github/Providers/GitHub.php
  3. +4 −4 additional-providers/hybridauth-goodreads/Providers/Goodreads.php
  4. +1 −1 additional-providers/hybridauth-instagram/Providers/Instagram.php
  5. +3 −3 additional-providers/hybridauth-lastfm/Providers/LastFM.php
  6. +1 −1 additional-providers/hybridauth-mailru/Providers/Mailru.php
  7. +1 −1 additional-providers/hybridauth-murmur/Providers/Murmur.php
  8. +4 −4 additional-providers/hybridauth-odnoklassniki/Providers/Odnoklassniki.php
  9. +2 −2 additional-providers/hybridauth-sina/Providers/Sina.php
  10. +3 −3 additional-providers/hybridauth-viadeo/Providers/Viadeo.php
  11. +4 −4 additional-providers/hybridauth-vimeo/Providers/Vimeo.php
  12. +3 −3 additional-providers/hybridauth-vkontakte/Providers/Vkontakte.php
  13. +2 −2 additional-providers/hybridauth-yandex/Providers/Yandex.php
  14. +1 −1 examples/hello_world/index.php
  15. +2 −2 examples/signin_signup/application/controllers/authentications.php
  16. +1 −1 examples/social_hub/login.php
  17. +2 −2 examples/social_hub/profile.php
  18. +1 −1 examples/widget_authentication/widget/index.php
  19. +4 −4 hybridauth/Hybrid/Endpoint.php
  20. +1 −1 hybridauth/Hybrid/Provider_Adapter.php
  21. +5 −5 hybridauth/Hybrid/Provider_Model_OAuth1.php
  22. +2 −2 hybridauth/Hybrid/Provider_Model_OAuth2.php
  23. +2 −2 hybridauth/Hybrid/Provider_Model_OpenID.php
  24. +2 −2 hybridauth/Hybrid/Providers/Facebook.php
  25. +1 −1 hybridauth/Hybrid/Providers/Foursquare.php
  26. +1 −1 hybridauth/Hybrid/Providers/Google.php
  27. +4 −4 hybridauth/Hybrid/Providers/LinkedIn.php
  28. +1 −1 hybridauth/Hybrid/Providers/Live.php
  29. +4 −4 hybridauth/Hybrid/Providers/MySpace.php
  30. +2 −2 hybridauth/Hybrid/Providers/Yahoo.php
View
2 additional-providers/hybridauth-disqus/Providers/Disqus.php
@@ -36,7 +36,7 @@ function getUserProfile()
$data = $this->api->get( "users/details" );
print_r($data);
if ( ! isset( $data->code ) ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
} else if ( $data->code != 0 ){
throw new Exception( "User profile request failed! {$this->providerId} returned error code".$data->code.".", 6 );
}
View
2 additional-providers/hybridauth-github/Providers/GitHub.php
@@ -35,7 +35,7 @@ function getUserProfile()
$data = $this->api->api( "user" );
if ( ! isset( $data->id ) ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
}
$this->user->profile->identifier = @ $data->id;
View
8 additional-providers/hybridauth-goodreads/Providers/Goodreads.php
@@ -34,13 +34,13 @@ function loginFinish()
{
// in case we get authorize=0
if ( ! isset($_REQUEST['oauth_token']) || ( isset( $_REQUEST['authorize'] ) && $_REQUEST['authorize'] == "0" ) ){
- throw new Exception( "Authentification failed! The user denied your request.", 5 );
+ throw new Exception( "Authentication failed! The user denied your request.", 5 );
}
$oauth_verifier = @ $_REQUEST['oauth_token'];
if ( !$oauth_verifier ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid oauth verifier.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid oauth verifier.", 5 );
}
// request an access token
@@ -51,12 +51,12 @@ function loginFinish()
// check the last HTTP status code returned
if ( $this->api->http_code != 200 ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ), 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ), 5 );
}
// we should have an access_token, or else, something has gone wrong
if ( ! isset( $tokens["oauth_token"] ) ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid access token.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid access token.", 5 );
}
// we no more need to store requet tokens
View
2 additional-providers/hybridauth-instagram/Providers/Instagram.php
@@ -33,7 +33,7 @@ function getUserProfile(){
$data = $this->api->api("users/self/" );
if ( $data->meta->code != 200 ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
}
$this->user->profile->identifier = $data->data->id;
View
6 additional-providers/hybridauth-lastfm/Providers/LastFM.php
@@ -48,14 +48,14 @@ function loginFinish()
if ( ! $token )
{
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid Token.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid Token.", 5 );
}
try{
$response = $this->api->fetchSession( $token );
}
catch( LastFMException $e ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an error while requesting and access token. $e.", 6 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an error while requesting and access token. $e.", 6 );
}
if( isset( $response['sk'] ) && isset( $response['name'] ) ){
@@ -68,7 +68,7 @@ function loginFinish()
$this->setUserConnected();
}
else{
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid access Token.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid access Token.", 5 );
}
}
View
2 additional-providers/hybridauth-mailru/Providers/Mailru.php
@@ -35,7 +35,7 @@ function getUserProfile()
$sig = md5( "client_id=" . $this->api->client_id . "format=jsonmethod=users.getInfosecure=1session_key=". $this->api->access_token . $this->api->client_secret );
$response = $this->api->api( "?format=json&client_id=" . $this->api->client_id . "&method=users.getInfo&secure=1&sig=" .$sig);
if ( ! isset( $response[0]->uid ) ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
}
$response = $response[0];
View
2 additional-providers/hybridauth-murmur/Providers/Murmur.php
@@ -41,7 +41,7 @@ function initialize()
$tokens = $this->api->requestToken( $this->endpoint );
if ( ! isset( $tokens ) ){
- throw new Exception( 'Authentification failed! '.$this->providerId.' returned an invalid Request Token.', 5 );
+ throw new Exception( 'Authentication failed! '.$this->providerId.' returned an invalid Request Token.', 5 );
}
$this->token( 'request_token' , $tokens['oauth_token'] );
View
8 additional-providers/hybridauth-odnoklassniki/Providers/Odnoklassniki.php
@@ -111,7 +111,7 @@ function loginFinish()
// check for errors
if ( $error ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an error: $error", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an error: $error", 5 );
}
// try to authenicate user
@@ -126,7 +126,7 @@ function loginFinish()
// check if authenticated
if ( ! $this->api->access_token ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid access token.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid access token.", 5 );
}
// store tokens
@@ -147,7 +147,7 @@ function getUserProfile()
$sig = md5('application_key=' . $this->config['keys']['key'] . 'method=users.getCurrentUser' . md5($this->api->access_token . $this->api->client_secret));
$response = $this->api->api( '?application_key=' . $this->config['keys']['key'] . '&method=users.getCurrentUser&sig=' .$sig);
if ( ! isset( $response->uid ) ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
}
$this->user->profile->identifier = (property_exists($response,'uid'))?$response->uid:"";
@@ -171,4 +171,4 @@ function getUserProfile()
return $this->user->profile;
}
-}
+}
View
4 additional-providers/hybridauth-sina/Providers/Sina.php
@@ -64,7 +64,7 @@ function loginFinish()
{
if ( ! $_REQUEST['code'] )
{
- throw new Exception( 'Authentification failed! ' . $this->providerId . ' returned an invalid OAuth Token and Verifier.', 5 );
+ throw new Exception( 'Authentication failed! ' . $this->providerId . ' returned an invalid OAuth Token and Verifier.', 5 );
}
@@ -75,7 +75,7 @@ function loginFinish()
try {
$tokz = $this->api->getAccessToken( 'code', $params ) ;
} catch (OAuthException $e) {
- throw new Exception( 'Authentification failed! ' . $this->providerId . ' returned an invalid Access Token.', 5 );
+ throw new Exception( 'Authentication failed! ' . $this->providerId . ' returned an invalid Access Token.', 5 );
}
// Store tokens
View
6 additional-providers/hybridauth-viadeo/Providers/Viadeo.php
@@ -48,7 +48,7 @@ function loginBegin()
Hybrid_Auth::redirect( $url );
}
catch ( ViadeoException $e ){
- throw new Exception( "Authentification failed! An error occured during {$this->providerId} authentication.", 5 );
+ throw new Exception( "Authentication failed! An error occured during {$this->providerId} authentication.", 5 );
}
}
@@ -63,12 +63,12 @@ function loginFinish()
$this->api->setAccessTokenFromCode();
}
catch ( ViadeoException $e ){
- throw new Exception( "Authentification failed! An error occured during {$this->providerId} authentication", 5 );
+ throw new Exception( "Authentication failed! An error occured during {$this->providerId} authentication", 5 );
}
if ( ! $this->api->isAuthenticated() )
{
- throw new Exception( "Authentification failed! An error occured during {$this->providerId} authentication", 5 );
+ throw new Exception( "Authentication failed! An error occured during {$this->providerId} authentication", 5 );
}
// Store tokens
View
8 additional-providers/hybridauth-vimeo/Providers/Vimeo.php
@@ -44,7 +44,7 @@ function loginBegin()
if ( ! isset( $tokz["oauth_token"] ) )
{
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid Request Token.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid Request Token.", 5 );
}
$this->token( "request_token" , $tokz['oauth_token'] );
@@ -64,7 +64,7 @@ function loginFinish()
if ( ! $oauth_token || ! $oauth_verifier )
{
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid OAuth Token and Verifier.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid OAuth Token and Verifier.", 5 );
}
try{
@@ -76,12 +76,12 @@ function loginFinish()
$tokz = $this->api->getAccessToken( $oauth_verifier );
}
catch( VimeoAPIException $e ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an error while requesting a request token. $e.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an error while requesting a request token. $e.", 5 );
}
if ( ! isset( $tokz["oauth_token"] ) )
{
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid Access Token.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid Access Token.", 5 );
}
// Store tokens
View
6 additional-providers/hybridauth-vkontakte/Providers/Vkontakte.php
@@ -35,7 +35,7 @@ function loginFinish()
// check for errors
if ( $error ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an error: $error", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an error: $error", 5 );
}
// try to authenicate user
@@ -50,7 +50,7 @@ function loginFinish()
// check if authenticated
if ( !property_exists($response,'user_id') || ! $this->api->access_token ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid access token.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid access token.", 5 );
}
// store tokens
@@ -82,7 +82,7 @@ function getUserProfile()
if (!isset( $response->response[0] ) || !isset( $response->response[0]->uid ) || isset( $response->error ) ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
}
$response = $response->response[0];
View
4 additional-providers/hybridauth-yandex/Providers/Yandex.php
@@ -35,7 +35,7 @@ function getUserProfile()
{
$response = $this->api->api( "?format=json" );
if ( ! isset( $response->id ) ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
}
$this->user->profile->identifier = (property_exists($response,'id'))?$response->id:"";
@@ -58,4 +58,4 @@ function getUserProfile()
return $this->user->profile;
}
-}
+}
View
2 examples/hello_world/index.php
@@ -56,7 +56,7 @@
case 2 : echo "Provider not properly configured."; break;
case 3 : echo "Unknown or disabled provider."; break;
case 4 : echo "Missing provider application credentials."; break;
- case 5 : echo "Authentification failed. "
+ case 5 : echo "Authentication failed. "
. "The user has canceled the authentication or the provider refused the connection.";
break;
case 6 : echo "User profile request failed. Most likely the user is not connected "
View
4 examples/signin_signup/application/controllers/authentications.php
@@ -34,7 +34,7 @@ function authenticatewith( $provider )
# 3 - else, here lets check if the user email we got from the provider already exists in our database ( for this example the email is UNIQUE for each user )
// if authentication does not exist, but the email address returned by the provider does exist in database,
// then we tell the user that the email is already in use
- // but, its up to you if you want to associate the authentification with the user having the adresse email in the database
+ // but, its up to you if you want to associate the authentication with the user having the adresse email in the database
if( $user_profile->email ){
$user_info = $user->find_by_email( $user_profile->email );
@@ -73,7 +73,7 @@ function authenticatewith( $provider )
case 2 : $error = "Provider not properly configured."; break;
case 3 : $error = "Unknown or disabled provider."; break;
case 4 : $error = "Missing provider application credentials."; break;
- case 5 : $error = "Authentification failed. The user has canceled the authentication or the provider refused the connection."; break;
+ case 5 : $error = "Authentication failed. The user has canceled the authentication or the provider refused the connection."; break;
case 6 : $error = "User profile request failed. Most likely the user is not connected to the provider and he should to authenticate again.";
$adapter->logout();
break;
View
2 examples/social_hub/login.php
@@ -42,7 +42,7 @@
case 2 : $error = "Provider not properly configured."; break;
case 3 : $error = "Unknown or disabled provider."; break;
case 4 : $error = "Missing provider application credentials."; break;
- case 5 : $error = "Authentification failed. The user has canceled the authentication or the provider refused the connection."; break;
+ case 5 : $error = "Authentication failed. The user has canceled the authentication or the provider refused the connection."; break;
case 6 : $error = "User profile request failed. Most likely the user is not connected to the provider and he should to authenticate again.";
$adapter->logout();
break;
View
4 examples/social_hub/profile.php
@@ -36,7 +36,7 @@
case 2 : echo "Provider not properly configured."; break;
case 3 : echo "Unknown or disabled provider."; break;
case 4 : echo "Missing provider application credentials."; break;
- case 5 : echo "Authentification failed. "
+ case 5 : echo "Authentication failed. "
. "The user has canceled the authentication or the provider refused the connection.";
case 6 : echo "User profile request failed. Most likely the user is not connected "
. "to the provider and he should to authenticate again.";
@@ -196,4 +196,4 @@
include "includes/debugger.php";
?>
</body>
-</html>
+</html>
View
2 examples/widget_authentication/widget/index.php
@@ -19,7 +19,7 @@
case 2 : $message = "Provider not properly configured."; break;
case 3 : $message = "Unknown or disabled provider."; break;
case 4 : $message = "Missing provider application credentials."; break;
- case 5 : $message = "Authentification failed. The user has canceled the authentication or the provider refused the connection."; break;
+ case 5 : $message = "Authentication failed. The user has canceled the authentication or the provider refused the connection."; break;
default: $message = "Unspecified error!";
}
View
8 hybridauth/Hybrid/Endpoint.php
@@ -128,10 +128,10 @@ public static function processAuthStart()
# if REQUESTed hauth_idprovider is wrong, session not created, etc.
if( ! $hauth ) {
- Hybrid_Logger::error( "Endpoint: Invalide parameter on hauth_start!" );
+ Hybrid_Logger::error( "Endpoint: Invalid parameter on hauth_start!" );
header( "HTTP/1.0 404 Not Found" );
- die( "Invalide parameter! Please return to the login page and try again." );
+ die( "Invalid parameter! Please return to the login page and try again." );
}
try {
@@ -161,12 +161,12 @@ public static function processAuthDone()
$hauth = Hybrid_Auth::setup( $provider_id );
if( ! $hauth ) {
- Hybrid_Logger::error( "Endpoint: Invalide parameter on hauth_done!" );
+ Hybrid_Logger::error( "Endpoint: Invalid parameter on hauth_done!" );
$hauth->adapter->setUserUnconnected();
header("HTTP/1.0 404 Not Found");
- die( "Invalide parameter! Please return to the login page and try again." );
+ die( "Invalid parameter! Please return to the login page and try again." );
}
try {
View
2 hybridauth/Hybrid/Provider_Adapter.php
@@ -90,7 +90,7 @@ function factory( $id, $params = NULL )
// --------------------------------------------------------------------
/**
- * Hybrid_Provider_Adapter::login(), prepare the user session and the authentification request
+ * Hybrid_Provider_Adapter::login(), prepare the user session and the authentication request
* for index.php
*/
function login()
View
10 hybridauth/Hybrid/Provider_Model_OAuth1.php
@@ -103,11 +103,11 @@ function loginBegin()
// check the last HTTP status code returned
if ( $this->api->http_code != 200 ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ), 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ), 5 );
}
if ( ! isset( $tokens["oauth_token"] ) ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid oauth token.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid oauth token.", 5 );
}
$this->token( "request_token" , $tokens["oauth_token"] );
@@ -128,7 +128,7 @@ function loginFinish()
$oauth_verifier = (array_key_exists('oauth_verifier',$_REQUEST))?$_REQUEST['oauth_verifier']:"";
if ( ! $oauth_token || ! $oauth_verifier ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid oauth verifier.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid oauth verifier.", 5 );
}
// request an access token
@@ -139,12 +139,12 @@ function loginFinish()
// check the last HTTP status code returned
if ( $this->api->http_code != 200 ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ), 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ), 5 );
}
// we should have an access_token, or else, something has gone wrong
if ( ! isset( $tokens["oauth_token"] ) ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid access token.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid access token.", 5 );
}
// we no more need to store requet tokens
View
4 hybridauth/Hybrid/Provider_Model_OAuth2.php
@@ -104,7 +104,7 @@ function loginFinish()
// check for errors
if ( $error ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an error: $error", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an error: $error", 5 );
}
// try to authenicate user
@@ -119,7 +119,7 @@ function loginFinish()
// check if authenticated
if ( ! $this->api->access_token ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid access token.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid access token.", 5 );
}
// store tokens
View
4 hybridauth/Hybrid/Provider_Model_OpenID.php
@@ -89,12 +89,12 @@ function loginFinish()
{
# if user don't garant acess of their data to your site, halt with an Exception
if( $this->api->mode == 'cancel'){
- throw new Exception( "Authentification failed! User has canceled authentication!", 5 );
+ throw new Exception( "Authentication failed! User has canceled authentication!", 5 );
}
# if something goes wrong
if( ! $this->api->validate() ){
- throw new Exception( "Authentification failed. Invalid request recived!", 5 );
+ throw new Exception( "Authentication failed. Invalid request recived!", 5 );
}
# fetch recived user data
View
4 hybridauth/Hybrid/Providers/Facebook.php
@@ -79,12 +79,12 @@ function loginFinish()
{
// in case we get error_reason=user_denied&error=access_denied
if ( isset( $_REQUEST['error'] ) && $_REQUEST['error'] == "access_denied" ){
- throw new Exception( "Authentification failed! The user denied your request.", 5 );
+ throw new Exception( "Authentication failed! The user denied your request.", 5 );
}
// try to get the UID of the connected user from fb, should be > 0
if ( ! $this->api->getUser() ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalide user id.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid user id.", 5 );
}
// set user as logged in
View
2 hybridauth/Hybrid/Providers/Foursquare.php
@@ -35,7 +35,7 @@ function getUserProfile()
$data = $this->api->api( "users/self" );
if ( ! isset( $data->response->user->id ) ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
}
$data = $data->response->user;
View
2 hybridauth/Hybrid/Providers/Google.php
@@ -57,7 +57,7 @@ function getUserProfile()
$response = $this->api->api( "https://www.googleapis.com/oauth2/v1/userinfo" );
if ( ! isset( $response->id ) || isset( $response->error ) ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
}
$this->user->profile->identifier = (property_exists($response,'id'))?$response->id:"";
View
8 hybridauth/Hybrid/Providers/LinkedIn.php
@@ -49,7 +49,7 @@ function loginBegin()
Hybrid_Auth::redirect( LINKEDIN::_URL_AUTH . $response['linkedin']['oauth_token'] );
}
else{
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid Token.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid Token.", 5 );
}
}
@@ -62,7 +62,7 @@ function loginFinish()
$oauth_verifier = $_REQUEST['oauth_verifier'];
if ( ! $oauth_verifier ){
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid Token.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid Token.", 5 );
}
$response = $this->api->retrieveTokenAccess( $oauth_token, $this->token( "oauth_token_secret" ), $oauth_verifier );
@@ -79,7 +79,7 @@ function loginFinish()
$this->setUserConnected();
}
else{
- throw new Exception( "Authentification failed! {$this->providerId} returned an invalid Token.", 5 );
+ throw new Exception( "Authentication failed! {$this->providerId} returned an invalid Token.", 5 );
}
}
@@ -100,7 +100,7 @@ function getUserProfile()
$data = @ new SimpleXMLElement( $response['linkedin'] );
if ( ! is_object( $data ) ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide xml data.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid xml data.", 6 );
}
$this->user->profile->identifier = (string) $data->{'id'};
View
2 hybridauth/Hybrid/Providers/Live.php
@@ -46,7 +46,7 @@ function getUserProfile()
$data = $this->api->get( "me" );
if ( ! isset( $data->id ) ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
}
$this->user->profile->identifier = (property_exists($data,'id'))?$data->id:"";
View
8 hybridauth/Hybrid/Providers/MySpace.php
@@ -34,7 +34,7 @@ public function getCurrentUserId()
$response = $this->api->get( 'http://api.myspace.com/v1/user.json' );
if ( ! isset( $response->userId ) ){
- throw new Exception( "User id request failed! {$this->providerId} returned an invalide response." );
+ throw new Exception( "User id request failed! {$this->providerId} returned an invalid response." );
}
return $response->userId;
@@ -50,7 +50,7 @@ function getUserProfile()
$data = $this->api->get( 'http://api.myspace.com/v1/users/' . $userId . '/profile.json' );
if ( ! is_object( $data ) ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
}
$this->user->profile->identifier = $userId;
@@ -78,7 +78,7 @@ function getUserContacts()
$response = $this->api->get( "http://api.myspace.com/v1/users/" . $userId . "/friends.json" );
if ( ! is_object( $response ) ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
}
$contacts = ARRAY();
@@ -134,7 +134,7 @@ function getUserActivity( $stream )
}
if ( ! is_object( $response ) ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
}
$activities = ARRAY();
View
4 hybridauth/Hybrid/Providers/Yahoo.php
@@ -40,7 +40,7 @@ function getUserProfile()
$response = $this->api->get( 'user/' . $userId . '/profile', $parameters );
if ( ! isset( $response->profile ) ){
- throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
+ throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
}
$data = $response->profile;
@@ -229,7 +229,7 @@ public function getCurrentUserId()
$response = $this->api->get( 'me/guid', $parameters );
if ( ! isset( $response->guid->value ) ){
- throw new Exception( "User id request failed! {$this->providerId} returned an invalide response." );
+ throw new Exception( "User id request failed! {$this->providerId} returned an invalid response." );
}
return $response->guid->value;

0 comments on commit 425c000

Please sign in to comment.