Passed
Push — master ( cf7c7e...7addbd )
by Carl
02:05
created
Models/DTOs/User.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,8 +182,9 @@
 block discarded – undo
182 182
     public function setBirthdayUnixTimestamp($timestamp)
183 183
     {
184 184
         $dateTime = \DateTime::createFromFormat('U', $timestamp);
185
-        if ($dateTime instanceof \DateTime)
186
-            $this->setBirthday($dateTime);
185
+        if ($dateTime instanceof \DateTime) {
186
+                    $this->setBirthday($dateTime);
187
+        }
187 188
     }
188 189
 
189 190
     /**
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
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         KycDocumentPageTranslator $kycDocumentPageTranslator
47 47
     ) {
48 48
         $this->kycDocumentPageTranslator = $kycDocumentPageTranslator;
49
-        parent::__construct($clientId, $clientPassword, $baseUrl,$mangoPayApi, $logger);
49
+        parent::__construct($clientId, $clientPassword, $baseUrl, $mangoPayApi, $logger);
50 50
     }
51 51
 
52 52
     /**
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
         try {
60 60
             $this->mangoPayApi->Users->CreateKycPageFromFile($kycDocumentPage->getKycDocumentId(), $kycDocumentPage->getOwnerId(), $mangoKycDocumentPage);
61 61
 
62
-        } catch(ResponseException $e) {
62
+        } catch (ResponseException $e) {
63 63
             $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]);
64 64
             return new PartFireException($e->getMessage(), $e->getCode());
65
-        } catch(Exception $e) {
65
+        } catch (Exception $e) {
66 66
             $this->logger->addError($e->getMessage());
67 67
             return new PartFireException($e->getMessage(), $e->getCode());
68 68
         }
Please login to merge, or discard this patch.
Models/Adapters/KycDocumentQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         KycDocumentTranslator $kycDocumentTranslator
35 35
     ) {
36 36
         $this->kycDocumentTranslator = $kycDocumentTranslator;
37
-        parent::__construct($clientId, $clientPassword, $baseUrl,$mangoPayApi, $logger);
37
+        parent::__construct($clientId, $clientPassword, $baseUrl, $mangoPayApi, $logger);
38 38
     }
39 39
 
40 40
     public function create(KycDocument $kycDocumentDto, $shouldSubmit = false)
@@ -47,10 +47,10 @@  discard block
 block discarded – undo
47 47
             }
48 48
             $mangoKycDocument = $this->mangoPayApi->Users->CreateKycDocument($UserId, $mangoKycDocument);
49 49
 
50
-        } catch(ResponseException $e) {
50
+        } catch (ResponseException $e) {
51 51
             $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]);
52 52
             return new PartFireException($e->getMessage(), $e->getCode());
53
-        } catch(Exception $e) {
53
+        } catch (Exception $e) {
54 54
             $this->logger->addError($e->getMessage());
55 55
             return new PartFireException($e->getMessage(), $e->getCode());
56 56
         }
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.