Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Feb 6, 2025
1 parent e73113b commit 6fe518d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/GooglePlay/Acknowledger.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ class Acknowledger
* Acknowledger constructor.
*
* @param AndroidPublisher $googleServiceAndroidPublisher
* @param string $packageName
* @param string $purchaseToken
* @param string $productId
* @param string $strategy
* @param string $packageName
* @param string $purchaseToken
* @param string $productId
* @param string $strategy
*
* @throws RunTimeException
*/
public function __construct(
AndroidPublisher $googleServiceAndroidPublisher,
string $packageName,
string $productId,
string $purchaseToken,
string $strategy = self::ACKNOWLEDGE_STRATEGY_EXPLICIT
string $packageName,
string $productId,
string $purchaseToken,
string $strategy = self::ACKNOWLEDGE_STRATEGY_EXPLICIT
) {
if (!in_array($strategy, [self::ACKNOWLEDGE_STRATEGY_EXPLICIT, self::ACKNOWLEDGE_STRATEGY_IMPLICIT])) {
throw new RuntimeException(sprintf('Invalid strategy provided %s', $strategy));
Expand Down
11 changes: 7 additions & 4 deletions src/GooglePlay/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Validator
* Validator constructor.
*
* @param AndroidPublisher $googleServiceAndroidPublisher
* @param bool $validationModePurchase
* @param bool $validationModePurchase
*/
public function __construct(
AndroidPublisher $googleServiceAndroidPublisher,
Expand Down Expand Up @@ -111,8 +111,9 @@ public function setValidationSubscriptionV2(bool $validationSubscriptionV2): sta
}

/**
* @return PurchaseResponse|SubscriptionResponse
* @throws Exception
*
* @return PurchaseResponse|SubscriptionResponse
*/
public function validate()
{
Expand All @@ -128,8 +129,9 @@ public function validate()
}

/**
* @return PurchaseResponse
* @throws Exception
*
* @return PurchaseResponse
*/
public function validatePurchase(): PurchaseResponse
{
Expand All @@ -143,8 +145,9 @@ public function validatePurchase(): PurchaseResponse
}

/**
* @return SubscriptionResponse
* @throws Exception
*
* @return SubscriptionResponse
*/
public function validateSubscription(): SubscriptionResponse
{
Expand Down

0 comments on commit 6fe518d

Please sign in to comment.