Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

[3.0] Remove return types from WebhookController #68

Merged
merged 1 commit into from
Feb 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Http/Controllers/WebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function parseBraintreeNotification($request)
* @param \Braintree\WebhookNotification $webhook
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function handleSubscriptionCanceled($webhook): Response
protected function handleSubscriptionCanceled($webhook)
{
return $this->cancelSubscription($webhook->subscription->id);
}
Expand All @@ -62,7 +62,7 @@ protected function handleSubscriptionCanceled($webhook): Response
* @param \Braintree\WebhookNotification $webhook
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function handleSubscriptionExpired($webhook): Response
protected function handleSubscriptionExpired($webhook)
{
return $this->cancelSubscription($webhook->subscription->id);
}
Expand All @@ -73,7 +73,7 @@ protected function handleSubscriptionExpired($webhook): Response
* @param string $subscriptionId
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function cancelSubscription($subscriptionId): Response
protected function cancelSubscription($subscriptionId)
{
$subscription = $this->getSubscriptionById($subscriptionId);

Expand Down Expand Up @@ -101,7 +101,7 @@ protected function getSubscriptionById($subscriptionId): ?Subscription
* @param array $parameters
* @return \Symfony\Component\HttpFoundation\Response
*/
public function missingMethod(array $parameters = []): Response
public function missingMethod(array $parameters = [])
{
return new Response;
}
Expand Down