Skip to content

Commit

Permalink
Fix code formatting after merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav.kuryan committed Apr 19, 2017
1 parent 6c5d436 commit 0fecce3
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 71 deletions.
21 changes: 10 additions & 11 deletions src/GooglePlay/AbstractResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,7 +29,6 @@ public function __construct($response)
}

/**
* @return array|string
*/
public function getDeveloperPayload()
Expand All @@ -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;
Expand Down
18 changes: 11 additions & 7 deletions src/GooglePlay/PurchaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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;
}
Expand Down
106 changes: 53 additions & 53 deletions src/GooglePlay/SubscriptionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand All @@ -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;
}
}

0 comments on commit 0fecce3

Please sign in to comment.