@@ -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 | /** |
@@ -58,10 +58,10 @@ discard block |
||
58 | 58 | try { |
59 | 59 | $kycDocumentPage = $this->mangoPayApi->Users->CreateKycPageFromFile($kycDocumentPage->getOwnerId(), $kycDocumentPage->getKycDocumentId(), $kycDocumentPage->getFilePath()); |
60 | 60 | |
61 | - } catch(ResponseException $e) { |
|
61 | + } catch (ResponseException $e) { |
|
62 | 62 | $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]); |
63 | 63 | throw new PartFireException($e->getMessage(), $e->getCode(), $e); |
64 | - } catch(Exception $e) { |
|
64 | + } catch (Exception $e) { |
|
65 | 65 | $this->logger->addError($e->getMessage()); |
66 | 66 | throw new PartFireException($e->getMessage(), $e->getCode(), $e); |
67 | 67 | } |
@@ -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 | throw new PartFireException($e->getMessage(), $e->getCode(), $e); |
60 | - } catch(Exception $e) { |
|
60 | + } catch (Exception $e) { |
|
61 | 61 | $this->logger->addError($e->getMessage()); |
62 | 62 | throw new PartFireException($e->getMessage(), $e->getCode(), $e); |
63 | 63 | } |
@@ -68,10 +68,10 @@ discard block |
||
68 | 68 | { |
69 | 69 | try { |
70 | 70 | $mangoWallet = $this->mangoPayApi->Wallets->Get($walletId); |
71 | - } catch(ResponseException $e) { |
|
71 | + } catch (ResponseException $e) { |
|
72 | 72 | $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]); |
73 | 73 | throw new PartFireException($e->getMessage(), $e->getCode(), $e); |
74 | - } catch(Exception $e) { |
|
74 | + } catch (Exception $e) { |
|
75 | 75 | $this->logger->addError($e->getMessage()); |
76 | 76 | throw new PartFireException($e->getMessage(), $e->getCode(), $e); |
77 | 77 | } |