@@ -14,7 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace PartFire\MangoPayBundle\Services; |
| 16 | 16 | |
| 17 | -use Composer\EventDispatcher\Event; |
|
| 18 | 17 | use PartFire\CommonBundle\Services\Output\CommonOutputInterface; |
| 19 | 18 | use PartFire\MangoPayBundle\Entity\Hook; |
| 20 | 19 | use PartFire\MangoPayBundle\Entity\Repository\HookRepository; |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | { |
| 76 | 76 | $output->info(count($this->getAllNewWebhooks()) . " new hooks to check"); |
| 77 | 77 | |
| 78 | - foreach($this->getAllNewWebhooks() as $webHook) { |
|
| 78 | + foreach ($this->getAllNewWebhooks() as $webHook) { |
|
| 79 | 79 | $output->infoid(" Processing hook ID " . $webHook->getId() . " - Action Type = " . $webHook->getHookEventType()); |
| 80 | 80 | try { |
| 81 | 81 | $this->processWebhook($webHook, $output); |
@@ -93,13 +93,13 @@ discard block |
||
| 93 | 93 | $webhookEvent->setOutput($commonOutput); |
| 94 | 94 | } else { |
| 95 | 95 | $this->sendErrorMessage( |
| 96 | - "Received webhook from MangoPay *" . $hook->getHookEventType() ."* and unsure what to do with it \n ```" . json_encode($hook->getRawHookData()) . "```", |
|
| 96 | + "Received webhook from MangoPay *" . $hook->getHookEventType() . "* and unsure what to do with it \n ```" . json_encode($hook->getRawHookData()) . "```", |
|
| 97 | 97 | ':anguished:' |
| 98 | 98 | ); |
| 99 | 99 | } |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - private function getIdentityCheckReportByOnfidoReportId(OnfidoHookQueue $onfidoHookQueue) : ?IdentityCheckReport |
|
| 102 | + private function getIdentityCheckReportByOnfidoReportId(OnfidoHookQueue $onfidoHookQueue) : ? IdentityCheckReport |
|
| 103 | 103 | { |
| 104 | 104 | return $this->mangoPayRepositoryFactory->getIdentityCheckReport()->findOneByOnfidoReportId( |
| 105 | 105 | $onfidoHookQueue->getResourceId() |