Skip to content

Commit

Permalink
Merge pull request #93 from bshaffer/misc-fixes
Browse files Browse the repository at this point in the history
misc fixes - usability and doc fix
  • Loading branch information
bshaffer committed Feb 24, 2016
2 parents 3e508c2 + ccfdea3 commit 45c5e62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<dt>Authors</dt>
<dd><a href="mailto:[email protected]">Tim Emiola</a></dd>
<dd><a href="mailto:[email protected]">Stanley Cheung</a></dd>
<dd><a href="mailto:[email protected]">Brent Shaffer</a></dd>
<dt>Copyright</dt><dd>Copyright © 2015 Google, Inc.</dd>
<dt>License</dt><dd>Apache 2.0</dd>
</dl>
Expand All @@ -14,11 +15,6 @@
This is Google's officially supported PHP client library for using OAuth 2.0
authorization and authentication with Google APIs.

## Alpha

This library is in Alpha. We will make an effort to support the library, but
we reserve the right to make incompatible changes when necessary.

### Installing via Composer

The recommended way to install the google auth library is through
Expand Down
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 45c5e62

Please sign in to comment.