Passed
Push — master ( 92daf4...591509 )
by
unknown
02:27
created
DependencyInjection/PartFireMangoPayExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $configuration = new Configuration();
23 23
         $config = $this->processConfiguration($configuration, $configs);
24 24
 
25
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
25
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
26 26
         $loader->load('services.yml');
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
Models/Adapters/UserQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         Logger $logger,
37 37
         UserTranslator $userTranslator
38 38
     ) {
39
-        parent::__construct($clientId, $clientPassword, $baseUrl,$mangoPayApi, $logger);
39
+        parent::__construct($clientId, $clientPassword, $baseUrl, $mangoPayApi, $logger);
40 40
         $this->userTranslator = $userTranslator;
41 41
     }
42 42
 
Please login to merge, or discard this patch.
Models/Adapters/WalletQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         Logger $logger,
46 46
         WalletTranslator $walletTranslator
47 47
     ) {
48
-        parent::__construct($clientId, $clientPassword, $baseUrl,$mangoPayApi, $logger);
48
+        parent::__construct($clientId, $clientPassword, $baseUrl, $mangoPayApi, $logger);
49 49
         $this->walletTranslator = $walletTranslator;
50 50
     }
51 51
 
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
         $mangoWallet = $this->walletTranslator->convertDTOToMangoPayWallet($walletDto);
55 55
         try {
56 56
             $mangoWallet = $this->mangoPayApi->Wallets->Create($mangoWallet);
57
-        } catch(ResponseException $e) {
57
+        } catch (ResponseException $e) {
58 58
             $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]);
59 59
             return new PartFireException($e->getMessage(), $e->getCode());
60
-        } catch(Exception $e) {
60
+        } catch (Exception $e) {
61 61
             $this->logger->addError($e->getMessage());
62 62
             return new PartFireException($e->getMessage(), $e->getCode());
63 63
         }
Please login to merge, or discard this patch.
Models/Adapters/KycDocumentPageQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         Logger $logger,
46 46
         WalletTranslator $walletTranslator
47 47
     ) {
48
-        parent::__construct($clientId, $clientPassword, $baseUrl,$mangoPayApi, $logger);
48
+        parent::__construct($clientId, $clientPassword, $baseUrl, $mangoPayApi, $logger);
49 49
         $this->walletTranslator = $walletTranslator;
50 50
     }
51 51
 
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
         $mangoWallet = $this->walletTranslator->convertDTOToMangoPayWallet($walletDto);
55 55
         try {
56 56
             $mangoWallet = $this->mangoPayApi->Wallets->Create($mangoWallet);
57
-        } catch(ResponseException $e) {
57
+        } catch (ResponseException $e) {
58 58
             $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]);
59 59
             return new PartFireException($e->getMessage(), $e->getCode());
60
-        } catch(Exception $e) {
60
+        } catch (Exception $e) {
61 61
             $this->logger->addError($e->getMessage());
62 62
             return new PartFireException($e->getMessage(), $e->getCode());
63 63
         }
Please login to merge, or discard this patch.
Models/Adapters/HookQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         Logger $logger,
37 37
         UserTranslator $userTranslator
38 38
     ) {
39
-        parent::__construct($clientId, $clientPassword, $baseUrl,$mangoPayApi, $logger);
39
+        parent::__construct($clientId, $clientPassword, $baseUrl, $mangoPayApi, $logger);
40 40
         $this->userTranslator = $userTranslator;
41 41
     }
42 42
 
Please login to merge, or discard this patch.
Command/HookUpdateAllCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $responses = [];
55 55
 
56 56
         $hookItems = $this->getHookService()->list();
57
-        foreach($hookItems as $hook) {
57
+        foreach ($hookItems as $hook) {
58 58
             $hookId = $hook->Id;
59 59
             $this->output->infoid("Updating Hook ID " . $hookId . " with " . $url);
60 60
             $responses[] = $this->getHookService()->update($hookId, $url);
Please login to merge, or discard this patch.
Models/Adapters/PayInQuery.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
                     return $this->payInTranslator->translateMangoPayDirectPayInToDto($createdPayIn);
55 55
                 }
56 56
                 $this->logger->addCritical(
57
-                    "Pay-In has been created with status: ".$createdPayIn->Status . ' (result code: ' . $createdPayIn->ResultCode . ')'
57
+                    "Pay-In has been created with status: " . $createdPayIn->Status . ' (result code: ' . $createdPayIn->ResultCode . ')'
58 58
                 );
59 59
                 throw new PartFireException(
60
-                    "Pay-In has been created with status: ".$createdPayIn->Status . ' (result code: ' . $createdPayIn->ResultCode . ')'
60
+                    "Pay-In has been created with status: " . $createdPayIn->Status . ' (result code: ' . $createdPayIn->ResultCode . ')'
61 61
                 );
62 62
             }
63 63
             $this->logger->addCritical("Failed to create PayIn");
@@ -83,10 +83,10 @@  discard block
 block discarded – undo
83 83
                     return $this->payInTranslator->translateMangoPayBankwireDirectPayInToDto($createdPayIn);
84 84
                 }
85 85
                 $this->logger->addCritical(
86
-                    "Pay-In has been created with status: ".$createdPayIn->Status . ' (result code: ' . $createdPayIn->ResultCode . ')'
86
+                    "Pay-In has been created with status: " . $createdPayIn->Status . ' (result code: ' . $createdPayIn->ResultCode . ')'
87 87
                 );
88 88
                 throw new PartFireException(
89
-                    "Pay-In has been created with status: ".$createdPayIn->Status . ' (result code: ' . $createdPayIn->ResultCode . ')'
89
+                    "Pay-In has been created with status: " . $createdPayIn->Status . ' (result code: ' . $createdPayIn->ResultCode . ')'
90 90
                 );
91 91
             }
92 92
             $this->logger->addCritical("Failed to create PayIn");
Please login to merge, or discard this patch.
Models/Adapters/PayOutQuery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@
 block discarded – undo
55 55
                     return $this->payOutTranslator->translateMangoToPayOutDto($createdPayout);
56 56
                 }
57 57
                 $this->logger->addCritical(
58
-                    "Pay-Out has been created with status: ".$createdPayout->Status . ' (result code: ' . $createdPayout->ResultCode . ')'
58
+                    "Pay-Out has been created with status: " . $createdPayout->Status . ' (result code: ' . $createdPayout->ResultCode . ')'
59 59
                 );
60 60
                 throw new PartFireException(
61
-                    "Pay-Out has been created with status: ".$createdPayout->Status . ' (result code: ' . $createdPayout->ResultCode . ')'
61
+                    "Pay-Out has been created with status: " . $createdPayout->Status . ' (result code: ' . $createdPayout->ResultCode . ')'
62 62
                 );
63 63
             }
64 64
             $this->logger->addCritical("Failed to create PayOut");
Please login to merge, or discard this patch.
Services/HookHandleService.php 1 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.