Passed
Push — master ( 92daf4...591509 )
by
unknown
02:27
created
Services/HookHandleService.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,6 @@
 block discarded – undo
14 14
 
15 15
 namespace PartFire\MangoPayBundle\Services;
16 16
 
17
-use Composer\EventDispatcher\Event;
18
-use Fruitful\FFConstants;
19 17
 use PartFire\CommonBundle\Services\Output\CommonOutputInterface;
20 18
 use PartFire\MangoPayBundle\Entity\Hook;
21 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
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     {
73 73
         $output->info(count($this->getAllNewWebhooks()) . " new hooks to check");
74 74
 
75
-        foreach($this->getAllNewWebhooks() as $webHook) {
75
+        foreach ($this->getAllNewWebhooks() as $webHook) {
76 76
             $output->infoid(" Processing hook ID " . $webHook->getResourceId() . " - Action Type = " . $webHook->getEventType());
77 77
             try {
78 78
                 $this->processWebhook($webHook, $output);
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
         } else {
92 92
             $this->sendErrorMessage(
93
-                "Received webhook from MangoPay *" . $hook->getEventType() ."*, which is unknown. Firing event anyway \n ```" . json_encode($hook->getRawHookData()) . "```",
93
+                "Received webhook from MangoPay *" . $hook->getEventType() . "*, which is unknown. Firing event anyway \n ```" . json_encode($hook->getRawHookData()) . "```",
94 94
                 ':anguished:'
95 95
             );
96 96
         }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         $this->mangoPayRepositoryFactory->saveAndGetEntity($hook);
116 116
     }
117 117
 
118
-    private function getIdentityCheckReportByOnfidoReportId(OnfidoHookQueue $onfidoHookQueue) : ?IdentityCheckReport
118
+    private function getIdentityCheckReportByOnfidoReportId(OnfidoHookQueue $onfidoHookQueue) : ? IdentityCheckReport
119 119
     {
120 120
         return $this->mangoPayRepositoryFactory->getIdentityCheckReport()->findOneByOnfidoReportId(
121 121
             $onfidoHookQueue->getResourceId()
Please login to merge, or discard this patch.
MangoPayConstants.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     // Hook Variables
75 75
     // https://docs.mangopay.com/endpoints/v2.01/hooks#e246_the-hook-object
76 76
     const       HOOK_EVENT_TYPE                     = "EventType";
77
-    const       HOOK_RESOURCE_ID                    = "RessourceId";  // Known spelling mistake in MangoPay Api
77
+    const       HOOK_RESOURCE_ID                    = "RessourceId"; // Known spelling mistake in MangoPay Api
78 78
     const       HOOK_DATE                           = "Date";
79 79
 
80 80
     public static function getKYCRefusalArray() : array
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
     public static function isEventTypeToDoWithKYC($eventType)
166 166
     {
167
-        return substr($eventType, 0,4) == "KYC_";
167
+        return substr($eventType, 0, 4) == "KYC_";
168 168
     }
169 169
 
170 170
     public static function getAllEventTypes()
Please login to merge, or discard this patch.