@@ -52,7 +52,7 @@ |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * @return float time at which the subscription will expire, seconds |
|
| 55 | + * @return integer time at which the subscription will expire, seconds |
|
| 56 | 56 | */ |
| 57 | 57 | public function getExpiryTime() { |
| 58 | 58 | return $this->getExpiryTimeMillis() / 1000; |
@@ -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) { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | success: %s |
| 71 | 71 | failure: %s |
| 72 | 72 | |
| 73 | -EOD |
|
| 73 | +eod |
|
| 74 | 74 | , $Response->getSuccessCount() |
| 75 | 75 | , $Response->getFailureCount()); |
| 76 | 76 | } catch (RequiredOptionException $Ex) { |
@@ -25,8 +25,8 @@ |
||
| 25 | 25 | use alxmsl\Google\AndroidPublisher\InAppProducts\Resource as InAppProductsResource; |
| 26 | 26 | |
| 27 | 27 | const PACKAGE_NAME = 'com.example.package', |
| 28 | - ACCESS_TOKEN = '4CcE5s_T0keN', |
|
| 29 | - PRODUCT_ID = 'com.example.package.product.1'; |
|
| 28 | + ACCESS_TOKEN = '4CcE5s_T0keN', |
|
| 29 | + PRODUCT_ID = 'com.example.package.product.1'; |
|
| 30 | 30 | |
| 31 | 31 | $Client = new Client(); |
| 32 | 32 | $Client->setPackage(PACKAGE_NAME) |
@@ -25,9 +25,9 @@ |
||
| 25 | 25 | use alxmsl\Google\AndroidPublisher\Purchases\Subscriptions\SubscriptionsClient; |
| 26 | 26 | |
| 27 | 27 | const PACKAGE_NAME = 'com.example.package', |
| 28 | - ACCESS_TOKEN = '4CcE5s_T0keN', |
|
| 29 | - SUBSCRIPTION_ID = 'com.example.package.product.1', |
|
| 30 | - PURCHASE_TOKEN = 'puRCH45e_tokEN'; |
|
| 28 | + ACCESS_TOKEN = '4CcE5s_T0keN', |
|
| 29 | + SUBSCRIPTION_ID = 'com.example.package.product.1', |
|
| 30 | + PURCHASE_TOKEN = 'puRCH45e_tokEN'; |
|
| 31 | 31 | |
| 32 | 32 | $Client = new SubscriptionsClient(); |
| 33 | 33 | $Client->setPackage(PACKAGE_NAME) |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | |
| 27 | 27 | // Define client identification |
| 28 | 28 | const CLIENT_ID = 'my-client@id', |
| 29 | - CLIENT_SECRET = 'clientsecret'; |
|
| 29 | + CLIENT_SECRET = 'clientsecret'; |
|
| 30 | 30 | |
| 31 | 31 | // Create new client |
| 32 | 32 | $Client = new WebServerApplication(); |
@@ -37,13 +37,13 @@ |
||
| 37 | 37 | * API client code |
| 38 | 38 | */ |
| 39 | 39 | const TYPE_PRODUCTS = 0, |
| 40 | - TYPE_SUBSCRIPTIONS = 1; |
|
| 40 | + TYPE_SUBSCRIPTIONS = 1; |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * Google Purchases API uri parts |
| 44 | 44 | */ |
| 45 | 45 | const URI_PRODUCTS = 'products', |
| 46 | - URI_SUBSCRIPTIONS = 'subscriptions'; |
|
| 46 | + URI_SUBSCRIPTIONS = 'subscriptions'; |
|
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * GooglePlay Purchases Products API endpoint |
@@ -28,14 +28,14 @@ |
||
| 28 | 28 | * Consumption state constants |
| 29 | 29 | */ |
| 30 | 30 | const STATE_YET_CONSUMED = 0, |
| 31 | - STATE_CONSUMED = 1; |
|
| 31 | + STATE_CONSUMED = 1; |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * Order state constants |
| 35 | 35 | */ |
| 36 | 36 | const ORDER_PURCHASED = 0, |
| 37 | - ORDER_CANCELLED = 1, |
|
| 38 | - ORDER_UNKNOWN = -1; |
|
| 37 | + ORDER_CANCELLED = 1, |
|
| 38 | + ORDER_UNKNOWN = -1; |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * @var int purchase consumption state |
@@ -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,7 +37,7 @@ |
||
| 37 | 37 | * Supported content types |
| 38 | 38 | */ |
| 39 | 39 | const CONTENT_TYPE_JSON = 'application/json', |
| 40 | - CONTENT_TYPE_PLAIN_TEXT = 'application/x-www-form-urlencoded; charset=UTF-8'; |
|
| 40 | + CONTENT_TYPE_PLAIN_TEXT = 'application/x-www-form-urlencoded; charset=UTF-8'; |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * GCM sender service endpoint |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | * GCM messages content types constants |
| 31 | 31 | */ |
| 32 | 32 | const TYPE_PLAIN = 0, |
| 33 | - TYPE_JSON = 1; |
|
| 33 | + TYPE_JSON = 1; |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Maximum registration ids for multicast messages |