Skip to content

Commit

Permalink
Apply fixes from StyleCI (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
rudowastaken authored May 11, 2022
1 parent bdb17c3 commit f658a9e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/DatabaseSubscriptionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 6 additions & 3 deletions src/Http/Controllers/StripeSubscriptionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class StripeSubscriptionsController extends Controller
/**
* @param $subscriptionId
* @return array
*
* @throws \Stripe\Exception\ApiErrorException
*/
public function show($subscriptionId)
Expand All @@ -36,6 +37,7 @@ public function show($subscriptionId)
/**
* @param $subscriptionId
* @return \Illuminate\Http\JsonResponse
*
* @throws \Laravel\Cashier\Exceptions\SubscriptionUpdateFailure
*/
public function update($subscriptionId)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -152,7 +155,7 @@ protected function formatInvoices($invoices)
}

/**
* @param mixed $value
* @param mixed $value
* @return string|null
*/
protected function formatDate($value)
Expand Down
2 changes: 1 addition & 1 deletion src/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Subscription extends ResourceTool
/**
* Subscription constructor.
*
* @param string $subscription
* @param string $subscription
*/
public function __construct(string $subscription = 'default')
{
Expand Down
3 changes: 1 addition & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f658a9e

Please sign in to comment.