Added php-cs-fixer to dev and ran it

1.0
Tom Anderson 2014-04-23 21:34:10 -07:00
parent 399a6167c4
commit 6387ae33fe
6 changed files with 17 additions and 14 deletions

View File

@ -8,6 +8,7 @@
},
"require-dev": {
"phpunit/phpunit": "*",
"fabpot/php-cs-fixer": "0.4.*@dev",
"fzaninotto/faker": "*"
},
"keywords": [

View File

@ -32,6 +32,7 @@ class Eventbrite extends IdentityProvider
$user = new User;
$user->uid = $response->user->user_id;
$user->email = $response->user->email;
return $user;
}

View File

@ -36,6 +36,7 @@ class Google extends IdentityProvider
$user->lastName = $response['family_name'];
$user->email = $response['email'];
$user->imageUrl = (isset($response['picture'])) ? $response['picture'] : null;
return $user;
}

View File

@ -4,7 +4,6 @@ namespace League\OAuth2\Client\Provider;
use Guzzle\Service\Client as GuzzleClient;
use League\OAuth2\Client\Token\AccessToken as AccessToken;
use League\OAuth2\Client\Token\Authorize as AuthorizeToken;
use League\OAuth2\Client\Exception\IDPException as IDPException;
use League\OAuth2\Client\Grant\GrantInterface;
@ -187,6 +186,7 @@ abstract class IdentityProvider
} else {
$url = http_build_query($params, $numeric_prefix, $arg_separator);
}
return $url;
}
protected function fetchUserDetails(AccessToken $token, $force = false)