@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * Error string constants |
| 30 | 30 | */ |
| 31 | 31 | const STRING_INVALID_GRANT = 'invalid_grant', |
| 32 | - STRING_INVALID_CLIENT = 'invalid_client'; |
|
| 32 | + STRING_INVALID_CLIENT = 'invalid_client'; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * @var string google error code |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | * Token type constants |
| 31 | 31 | */ |
| 32 | 32 | const TYPE_UNKNOWN = 0, |
| 33 | - TYPE_BEARER = 1; |
|
| 33 | + TYPE_BEARER = 1; |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @var string access token |
@@ -213,7 +213,7 @@ |
||
| 213 | 213 | id token: %s |
| 214 | 214 | refresh token: %s |
| 215 | 215 | token type: %s |
| 216 | -EOD; |
|
| 216 | +eod; |
|
| 217 | 217 | try { |
| 218 | 218 | $refreshToken = $this->getRefreshToken(); |
| 219 | 219 | } catch (OutOfBoundsException $Ex) { |
@@ -37,26 +37,26 @@ |
||
| 37 | 37 | * Access type constants |
| 38 | 38 | */ |
| 39 | 39 | const ACCESS_TYPE_ONLINE = 'online', |
| 40 | - ACCESS_TYPE_OFFLINE = 'offline'; |
|
| 40 | + ACCESS_TYPE_OFFLINE = 'offline'; |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * Approval constants |
| 44 | 44 | */ |
| 45 | 45 | const APPROVAL_PROMPT_AUTO = 'auto', |
| 46 | - APPROVAL_PROMPT_FORCE = 'force'; |
|
| 46 | + APPROVAL_PROMPT_FORCE = 'force'; |
|
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * Grant type constants |
| 50 | 50 | */ |
| 51 | 51 | const GRANT_TYPE_AUTHORIZATION = 'authorization_code', |
| 52 | - GRANT_TYPE_REFRESH = 'refresh_token'; |
|
| 52 | + GRANT_TYPE_REFRESH = 'refresh_token'; |
|
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * Google Api endpoints |
| 56 | 56 | */ |
| 57 | 57 | const ENDPOINT_INITIAL_REQUEST = 'https://accounts.google.com/o/oauth2/auth', |
| 58 | - ENDPOINT_ACCESS_TOKEN_REQUEST = 'https://accounts.google.com/o/oauth2/token', |
|
| 59 | - ENDPOINT_REVOKE_TOKEN = 'https://accounts.google.com/o/oauth2/revoke'; |
|
| 58 | + ENDPOINT_ACCESS_TOKEN_REQUEST = 'https://accounts.google.com/o/oauth2/token', |
|
| 59 | + ENDPOINT_REVOKE_TOKEN = 'https://accounts.google.com/o/oauth2/revoke'; |
|
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * @var Token access token |
@@ -25,9 +25,9 @@ |
||
| 25 | 25 | use alxmsl\Google\AndroidPublisher\Purchases\Products\Resource as ProductsResource; |
| 26 | 26 | |
| 27 | 27 | const PACKAGE_NAME = 'com.example.package', |
| 28 | - ACCESS_TOKEN = '4CcE5s_T0keN', |
|
| 29 | - PRODUCT_ID = 'com.example.package.product.1', |
|
| 30 | - PURCHASE_TOKEN = 'puRCH45e_tokEN'; |
|
| 28 | + ACCESS_TOKEN = '4CcE5s_T0keN', |
|
| 29 | + PRODUCT_ID = 'com.example.package.product.1', |
|
| 30 | + PURCHASE_TOKEN = 'puRCH45e_tokEN'; |
|
| 31 | 31 | |
| 32 | 32 | $Client = new Client(); |
| 33 | 33 | $Client->setPackage(PACKAGE_NAME) |
@@ -26,8 +26,8 @@ |
||
| 26 | 26 | |
| 27 | 27 | // Define client identification |
| 28 | 28 | const CLIENT_ID = 'my-client@id', |
| 29 | - CLIENT_SECRET = 'clientsecret', |
|
| 30 | - REDIRECT_URI = 'http://example.com/oauth2callback'; |
|
| 29 | + CLIENT_SECRET = 'clientsecret', |
|
| 30 | + REDIRECT_URI = 'http://example.com/oauth2callback'; |
|
| 31 | 31 | |
| 32 | 32 | // Create new client |
| 33 | 33 | $Client = new WebServerApplication(); |
@@ -213,7 +213,7 @@ |
||
| 213 | 213 | id token: %s |
| 214 | 214 | refresh token: %s |
| 215 | 215 | token type: %s |
| 216 | -EOD; |
|
| 216 | +eod; |
|
| 217 | 217 | try { |
| 218 | 218 | $refreshToken = $this->getRefreshToken(); |
| 219 | 219 | } catch (OutOfBoundsException $Ex) { |