From f658a9e6cee94f217f4d57190a7f3998dd2ca89a Mon Sep 17 00:00:00 2001 From: Rudolf Halas Date: Wed, 11 May 2022 23:41:50 +0200 Subject: [PATCH] Apply fixes from StyleCI (#30) --- src/Http/Controllers/Controller.php | 4 ++-- src/Http/Controllers/DatabaseSubscriptionsController.php | 2 +- src/Http/Controllers/StripeSubscriptionsController.php | 9 ++++++--- src/Subscription.php | 2 +- tests/TestCase.php | 3 +-- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/Http/Controllers/Controller.php b/src/Http/Controllers/Controller.php index fdb083b..f0bb56c 100644 --- a/src/Http/Controllers/Controller.php +++ b/src/Http/Controllers/Controller.php @@ -22,8 +22,8 @@ abstract class Controller extends BaseController /** * Controller constructor. * - * @param \Illuminate\Contracts\Config\Repository $config - * @param \Illuminate\Http\Request $request + * @param \Illuminate\Contracts\Config\Repository $config + * @param \Illuminate\Http\Request $request */ public function __construct(Repository $config, Request $request) { diff --git a/src/Http/Controllers/DatabaseSubscriptionsController.php b/src/Http/Controllers/DatabaseSubscriptionsController.php index 4b8bd81..041eabe 100644 --- a/src/Http/Controllers/DatabaseSubscriptionsController.php +++ b/src/Http/Controllers/DatabaseSubscriptionsController.php @@ -36,7 +36,7 @@ public function show($billableId) } /** - * @param \Laravel\Cashier\Subscription $subscription + * @param \Laravel\Cashier\Subscription $subscription * @return array */ protected function formatSubscription(Subscription $subscription) diff --git a/src/Http/Controllers/StripeSubscriptionsController.php b/src/Http/Controllers/StripeSubscriptionsController.php index d3d49ba..189085a 100644 --- a/src/Http/Controllers/StripeSubscriptionsController.php +++ b/src/Http/Controllers/StripeSubscriptionsController.php @@ -13,6 +13,7 @@ class StripeSubscriptionsController extends Controller /** * @param $subscriptionId * @return array + * * @throws \Stripe\Exception\ApiErrorException */ public function show($subscriptionId) @@ -36,6 +37,7 @@ public function show($subscriptionId) /** * @param $subscriptionId * @return \Illuminate\Http\JsonResponse + * * @throws \Laravel\Cashier\Exceptions\SubscriptionUpdateFailure */ public function update($subscriptionId) @@ -81,8 +83,9 @@ public function resume($subscriptionId) } /** - * @param \Laravel\Cashier\Subscription $subscription + * @param \Laravel\Cashier\Subscription $subscription * @return array + * * @throws \Stripe\Exception\ApiErrorException */ protected function formatSubscription(Subscription $subscription) @@ -114,7 +117,7 @@ protected function formatSubscription(Subscription $subscription) /** * Format the plans collection. * - * @param \Stripe\Collection $plans + * @param \Stripe\Collection $plans * @return array */ protected function formatPlans($plans) @@ -152,7 +155,7 @@ protected function formatInvoices($invoices) } /** - * @param mixed $value + * @param mixed $value * @return string|null */ protected function formatDate($value) diff --git a/src/Subscription.php b/src/Subscription.php index 247d1f2..08a527e 100644 --- a/src/Subscription.php +++ b/src/Subscription.php @@ -9,7 +9,7 @@ class Subscription extends ResourceTool /** * Subscription constructor. * - * @param string $subscription + * @param string $subscription */ public function __construct(string $subscription = 'default') { diff --git a/tests/TestCase.php b/tests/TestCase.php index 6c84fb7..3f823cb 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -10,8 +10,7 @@ abstract class TestCase extends Orchestra /** * Get package providers. * - * @param \Illuminate\Foundation\Application $app - * + * @param \Illuminate\Foundation\Application $app * @return array */ protected function getPackageProviders($app)