Skip to content

Commit

Permalink
misc fixes - usability and doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Feb 23, 2016
1 parent 3e508c2 commit 37619d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Credentials/UserRefreshCredentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class UserRefreshCredentials extends CredentialsLoader
* @param array $jsonKey JSON credentials.
*
* @param string $jsonKeyPath the path to a file containing JSON credentials. If
* jsonKeyStream is set, it is ignored.
* jsonKey is set, it is ignored.
*/
public function __construct(
$scope,
Expand Down
2 changes: 1 addition & 1 deletion src/OAuth2.php
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ public function getGrantType()

// Returns the inferred grant type, based on the current object instance
// state.
if (!is_null($this->code) && !is_null($this->redirectUri)) {
if (!is_null($this->code)) {
return 'authorization_code';
} else if (!is_null($this->refreshToken)) {
return 'refresh_token';
Expand Down

0 comments on commit 37619d5

Please sign in to comment.