@@ -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()); |
60 | - } catch(Exception $e) { |
|
60 | + } catch (Exception $e) { |
|
61 | 61 | $this->logger->addError($e->getMessage()); |
62 | 62 | throw new PartFireException($e->getMessage(), $e->getCode()); |
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()); |
74 | - } catch(Exception $e) { |
|
74 | + } catch (Exception $e) { |
|
75 | 75 | $this->logger->addError($e->getMessage()); |
76 | 76 | throw new PartFireException($e->getMessage(), $e->getCode()); |
77 | 77 | } |