Passed
Push — master ( b0e1d7...34bc8c )
by
unknown
02:32
created
Services/HookHandleService.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.