From 0fecce3644b6b084954e670441a5871f26da9ee5 Mon Sep 17 00:00:00 2001 From: "stanislav.kuryan" Date: Wed, 19 Apr 2017 10:49:49 +0300 Subject: [PATCH] Fix code formatting after merge. --- src/GooglePlay/AbstractResponse.php | 21 +++-- src/GooglePlay/PurchaseResponse.php | 18 ++-- src/GooglePlay/SubscriptionResponse.php | 106 ++++++++++++------------ 3 files changed, 74 insertions(+), 71 deletions(-) diff --git a/src/GooglePlay/AbstractResponse.php b/src/GooglePlay/AbstractResponse.php index 5af53b0..a7e1c9c 100644 --- a/src/GooglePlay/AbstractResponse.php +++ b/src/GooglePlay/AbstractResponse.php @@ -8,15 +8,15 @@ */ abstract class AbstractResponse { - const CONSUMPTION_STATE_YET_TO_BE_CONSUMED = 0; - const CONSUMPTION_STATE_CONSUMED = 1; - const PURCHASE_STATE_PURCHASED = 0; - const PURCHASE_STATE_CANCELED = 1; + const CONSUMPTION_STATE_YET_TO_BE_CONSUMED = 0; + const CONSUMPTION_STATE_CONSUMED = 1; + const PURCHASE_STATE_PURCHASED = 0; + const PURCHASE_STATE_CANCELED = 1; - /** - * @var \Google_Service_AndroidPublisher_ProductPurchase|\Google_Service_AndroidPublisher_SubscriptionPurchase - */ - protected $response; + /** + * @var \Google_Service_AndroidPublisher_ProductPurchase|\Google_Service_AndroidPublisher_SubscriptionPurchase + */ + protected $response; /** * Constructor @@ -29,7 +29,6 @@ public function __construct($response) } /** - * @return array|string */ public function getDeveloperPayload() @@ -46,8 +45,8 @@ public function getKind() } /** - * @return \Google_Service_AndroidPublisher_ProductPurchase|\Google_Service_AndroidPublisher_SubscriptionPurchase - */ + * @return \Google_Service_AndroidPublisher_ProductPurchase|\Google_Service_AndroidPublisher_SubscriptionPurchase + */ public function getRawResponse() { return $this->response; diff --git a/src/GooglePlay/PurchaseResponse.php b/src/GooglePlay/PurchaseResponse.php index 1b0b303..b6f9386 100644 --- a/src/GooglePlay/PurchaseResponse.php +++ b/src/GooglePlay/PurchaseResponse.php @@ -8,12 +8,12 @@ */ class PurchaseResponse extends AbstractResponse { - /** - * @var \Google_Service_AndroidPublisher_ProductPurchase - */ - protected $response; + /** + * @var \Google_Service_AndroidPublisher_ProductPurchase + */ + protected $response; - protected $developerPayload = array(); + protected $developerPayload = []; public function __construct($response) { @@ -27,13 +27,17 @@ public function __construct($response) public function getConsumptionState() { return $this->response->consumptionState; - }/** + } + + /** * @return string */ public function getPurchaseTimeMillis() { return $this->response->purchaseTimeMillis; - }public function getDeveloperPayload() + } + + public function getDeveloperPayload() { return $this->developerPayload; } diff --git a/src/GooglePlay/SubscriptionResponse.php b/src/GooglePlay/SubscriptionResponse.php index dcc065f..9ebf263 100644 --- a/src/GooglePlay/SubscriptionResponse.php +++ b/src/GooglePlay/SubscriptionResponse.php @@ -8,57 +8,57 @@ */ class SubscriptionResponse extends AbstractResponse { - /** - * @var \Google_Service_AndroidPublisher_SubscriptionPurchase - */ - protected $response; + /** + * @var \Google_Service_AndroidPublisher_SubscriptionPurchase + */ + protected $response; - /** - * @return bool - */ - public function getAutoRenewing() - { - return (bool)$this->response->getAutoRenewing(); - } + /** + * @return bool + */ + public function getAutoRenewing() + { + return (bool)$this->response->getAutoRenewing(); + } - /** - * @return integer|null - */ - public function getCancelReason() - { - return $this->response->getCancelReason(); - } + /** + * @return integer|null + */ + public function getCancelReason() + { + return $this->response->getCancelReason(); + } - /** - * @return string - */ - public function getCountryCode() - { - return $this->response->getCountryCode(); - } + /** + * @return string + */ + public function getCountryCode() + { + return $this->response->getCountryCode(); + } - /** - * @return integer - */ - public function getPriceAmountMicros() - { - return $this->response->getPriceAmountMicros(); - } + /** + * @return integer + */ + public function getPriceAmountMicros() + { + return $this->response->getPriceAmountMicros(); + } - /** - * @return string - */ - public function getPriceCurrencyCode() - { - return $this->response->getPriceCurrencyCode(); - } + /** + * @return string + */ + public function getPriceCurrencyCode() + { + return $this->response->getPriceCurrencyCode(); + } - /** - * @return string - */ - public function getStartTimeMillis() - { - return $this->response->getStartTimeMillis(); + /** + * @return string + */ + public function getStartTimeMillis() + { + return $this->response->getStartTimeMillis(); } /** @@ -83,13 +83,13 @@ public function getUserCancellationTimeMillis() public function getPaymentState() { return $this->response->getPaymentState(); - } + } - /** - * @return string - */ - public function getExpiresDate() - { - return $this->response->expiryTimeMillis; - } + /** + * @return string + */ + public function getExpiresDate() + { + return $this->response->expiryTimeMillis; + } }