Skip to content

Commit

Permalink
Apply fixes from StyleCI (#645)
Browse files Browse the repository at this point in the history
Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
srmklive and StyleCIBot authored Jun 23, 2024
1 parent e2f7340 commit 8ea8a6a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 32 deletions.
4 changes: 2 additions & 2 deletions src/Traits/PayPalAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ trait PayPalAPI
/**
* Login through PayPal API to get access token.
*
* @return array|StreamInterface|string
*
* @throws \Throwable
*
* @return array|StreamInterface|string
*
* @see https://developer.paypal.com/docs/api/get-an-access-token-curl/
* @see https://developer.paypal.com/docs/api/get-an-access-token-postman/
*/
Expand Down
1 change: 0 additions & 1 deletion src/Traits/PayPalAPI/PaymentMethodsTokens/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ protected function setPaymentSourceDetails(string $source, array $data): PayPalC
* @throws \Throwable
*
* @return array|StreamInterface|string
*
*/
public function sendPaymentMethodRequest(bool $create_source = false): StreamInterface|array|string
{
Expand Down
6 changes: 3 additions & 3 deletions src/Traits/PayPalAPI/Subscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,14 @@ public function reviseSubscription(string $subscription_id, array $items): Strea
/**
* List transactions for an existing subscription.
*
* @param string $subscription_id
* @param string $subscription_id
* @param DateTimeInterface|string $start_date
* @param DateTimeInterface|string $end_date
*
* @return array|StreamInterface|string
*
* @throws Throwable
*
* @return array|StreamInterface|string
*
* @see https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_transactions
*/
public function listSubscriptionTransactions(string $subscription_id, DateTimeInterface|string $start_date = '', DateTimeInterface|string $end_date = ''): StreamInterface|array|string
Expand Down
52 changes: 26 additions & 26 deletions src/Traits/PayPalAPI/Subscriptions/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ public function setupSubscription(string $customer_name, string $customer_email,
/**
* Add a subscription trial pricing tier.
*
* @param string $interval_type
* @param int $interval_count
* @param float $price
* @param int $total_cycles
* @param string $interval_type
* @param int $interval_count
* @param float $price
* @param int $total_cycles
*
* @return PayPalClient
*/
Expand All @@ -140,10 +140,10 @@ public function addPlanTrialPricing(string $interval_type, int $interval_count,
/**
* Create a recurring daily billing plan.
*
* @param string $name
* @param string $description
* @param float $price
* @param int $total_cycles
* @param string $name
* @param string $description
* @param float $price
* @param int $total_cycles
*
* @throws Throwable
*
Expand All @@ -166,10 +166,10 @@ public function addDailyPlan(string $name, string $description, float $price, in
/**
* Create a recurring weekly billing plan.
*
* @param string $name
* @param string $description
* @param float $price
* @param int $total_cycles
* @param string $name
* @param string $description
* @param float $price
* @param int $total_cycles
*
* @throws Throwable
*
Expand All @@ -192,10 +192,10 @@ public function addWeeklyPlan(string $name, string $description, float $price, i
/**
* Create a recurring monthly billing plan.
*
* @param string $name
* @param string $description
* @param float $price
* @param int $total_cycles
* @param string $name
* @param string $description
* @param float $price
* @param int $total_cycles
*
* @throws Throwable
*
Expand All @@ -218,10 +218,10 @@ public function addMonthlyPlan(string $name, string $description, float $price,
/**
* Create a recurring annual billing plan.
*
* @param string $name
* @param string $description
* @param float $price
* @param int $total_cycles
* @param string $name
* @param string $description
* @param float $price
* @param int $total_cycles
*
* @throws Throwable
*
Expand All @@ -244,12 +244,12 @@ public function addAnnualPlan(string $name, string $description, float $price, i
/**
* Create a recurring billing plan with custom intervals.
*
* @param string $name
* @param string $description
* @param float $price
* @param string $interval_unit
* @param int $interval_count
* @param int $total_cycles
* @param string $name
* @param string $description
* @param float $price
* @param string $interval_unit
* @param int $interval_count
* @param int $total_cycles
*
* @throws Throwable
*
Expand Down

0 comments on commit 8ea8a6a

Please sign in to comment.