@@ -22,7 +22,7 @@ |
||
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 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $this->mangoPayApi->Config->ClientId = $clientId; |
33 | 33 | $this->mangoPayApi->Config->ClientPassword = $clientPassword; |
34 | 34 | $this->mangoPayApi->Config->BaseUrl = $baseUrl; |
35 | - $this->mangoPayApi->Config->TemporaryFolder = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'mangopay-'.$clientId; |
|
35 | + $this->mangoPayApi->Config->TemporaryFolder = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'mangopay-' . $clientId; |
|
36 | 36 | $this->mangoPayApi->setLogger($logger); |
37 | 37 | $this->logger = $logger; |
38 | 38 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | Logger $logger, |
37 | 37 | WalletTranslator $walletTranslator |
38 | 38 | ) { |
39 | - parent::__construct($clientId, $clientPassword, $baseUrl,$mangoPayApi, $logger); |
|
39 | + parent::__construct($clientId, $clientPassword, $baseUrl, $mangoPayApi, $logger); |
|
40 | 40 | $this->walletTranslator = $walletTranslator; |
41 | 41 | } |
42 | 42 | |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | $mangoWallet = $this->walletTranslator->convertDTOToMangoPayWallet($walletDto); |
46 | 46 | try { |
47 | 47 | $mangoWallet = $this->mangoPayApi->Wallets->Create($mangoWallet); |
48 | - } catch(MangoPay\Libraries\ResponseException $e) { |
|
48 | + } catch (MangoPay\Libraries\ResponseException $e) { |
|
49 | 49 | $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]); |
50 | 50 | return new PartFireException($e->getMessage(), $e->getCode()); |
51 | - } catch(MangoPay\Libraries\Exception $e) { |
|
51 | + } catch (MangoPay\Libraries\Exception $e) { |
|
52 | 52 | $this->logger->addError($e->getMessage()); |
53 | 53 | return new PartFireException($e->getMessage(), $e->getCode()); |
54 | 54 | } |
@@ -36,7 +36,7 @@ |
||
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 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | Logger $logger, |
37 | 37 | WalletTranslator $walletTranslator |
38 | 38 | ) { |
39 | - parent::__construct($clientId, $clientPassword, $baseUrl,$mangoPayApi, $logger); |
|
39 | + parent::__construct($clientId, $clientPassword, $baseUrl, $mangoPayApi, $logger); |
|
40 | 40 | $this->walletTranslator = $walletTranslator; |
41 | 41 | } |
42 | 42 | |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | $mangoWallet = $this->walletTranslator->convertDTOToMangoPayWallet($walletDto); |
46 | 46 | try { |
47 | 47 | $mangoWallet = $this->mangoPayApi->Wallets->Create($mangoWallet); |
48 | - } catch(MangoPay\Libraries\ResponseException $e) { |
|
48 | + } catch (MangoPay\Libraries\ResponseException $e) { |
|
49 | 49 | $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]); |
50 | 50 | return new PartFireException($e->getMessage(), $e->getCode()); |
51 | - } catch(MangoPay\Libraries\Exception $e) { |
|
51 | + } catch (MangoPay\Libraries\Exception $e) { |
|
52 | 52 | $this->logger->addError($e->getMessage()); |
53 | 53 | return new PartFireException($e->getMessage(), $e->getCode()); |
54 | 54 | } |
@@ -36,7 +36,7 @@ |
||
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 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | Logger $logger, |
37 | 37 | WalletTranslator $walletTranslator |
38 | 38 | ) { |
39 | - parent::__construct($clientId, $clientPassword, $baseUrl,$mangoPayApi, $logger); |
|
39 | + parent::__construct($clientId, $clientPassword, $baseUrl, $mangoPayApi, $logger); |
|
40 | 40 | $this->walletTranslator = $walletTranslator; |
41 | 41 | } |
42 | 42 | |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | $mangoWallet = $this->walletTranslator->convertDTOToMangoPayWallet($walletDto); |
46 | 46 | try { |
47 | 47 | $mangoWallet = $this->mangoPayApi->Wallets->Create($mangoWallet); |
48 | - } catch(MangoPay\Libraries\ResponseException $e) { |
|
48 | + } catch (MangoPay\Libraries\ResponseException $e) { |
|
49 | 49 | $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]); |
50 | 50 | return new PartFireException($e->getMessage(), $e->getCode()); |
51 | - } catch(MangoPay\Libraries\Exception $e) { |
|
51 | + } catch (MangoPay\Libraries\Exception $e) { |
|
52 | 52 | $this->logger->addError($e->getMessage()); |
53 | 53 | return new PartFireException($e->getMessage(), $e->getCode()); |
54 | 54 | } |