@@ -182,8 +182,9 @@ |
||
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 | /** |
@@ -46,7 +46,7 @@ discard block |
||
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 |
||
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 | } |
@@ -34,7 +34,7 @@ discard block |
||
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 |
||
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 | } |
@@ -45,7 +45,7 @@ discard block |
||
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 |
||
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 | } |