@@ -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 | } |
@@ -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 @@ |
||
| 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 | |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -66,10 +66,10 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | try { |
| 68 | 68 | $mangoKycDocument = $this->mangoPayApi->Users->GetKycDocument($kycDocumentId); |
| 69 | - } catch(ResponseException $e) { |
|
| 69 | + } catch (ResponseException $e) { |
|
| 70 | 70 | $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]); |
| 71 | 71 | return new PartFireException($e->getMessage(), $e->getCode()); |
| 72 | - } catch(Exception $e) { |
|
| 72 | + } catch (Exception $e) { |
|
| 73 | 73 | $this->logger->addError($e->getMessage()); |
| 74 | 74 | return new PartFireException($e->getMessage(), $e->getCode()); |
| 75 | 75 | } |
@@ -16,19 +16,11 @@ |
||
| 16 | 16 | |
| 17 | 17 | namespace PartFire\MangoPayBundle\Command; |
| 18 | 18 | |
| 19 | -use Fruitful\IdentityCheckBundle\Entity\IdentityCheck; |
|
| 20 | -use Fruitful\IdentityCheckBundle\Entity\Repository\IdentityCheckFactoryRepository; |
|
| 21 | -use Fruitful\IdentityCheckBundle\Event\IdentityCheckUpdateEvent; |
|
| 22 | 19 | use PartFire\CommonBundle\Services\Output\Cli\ConsoleOutput; |
| 23 | 20 | use PartFire\MangoPayBundle\Services\Hook; |
| 24 | 21 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
| 25 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 26 | -use Symfony\Component\Console\Input\InputDefinition; |
|
| 27 | 22 | use Symfony\Component\Console\Input\InputInterface; |
| 28 | -use Symfony\Component\Console\Input\InputOption; |
|
| 29 | 23 | use Symfony\Component\Console\Output\OutputInterface; |
| 30 | -use Symfony\Component\EventDispatcher\EventDispatcher; |
|
| 31 | -use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
| 32 | 24 | |
| 33 | 25 | class HookListCommand extends ContainerAwareCommand |
| 34 | 26 | { |
@@ -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 | |
@@ -16,19 +16,11 @@ |
||
| 16 | 16 | |
| 17 | 17 | namespace PartFire\MangoPayBundle\Command; |
| 18 | 18 | |
| 19 | -use Fruitful\IdentityCheckBundle\Entity\IdentityCheck; |
|
| 20 | -use Fruitful\IdentityCheckBundle\Entity\Repository\IdentityCheckFactoryRepository; |
|
| 21 | -use Fruitful\IdentityCheckBundle\Event\IdentityCheckUpdateEvent; |
|
| 22 | 19 | use PartFire\CommonBundle\Services\Output\Cli\ConsoleOutput; |
| 23 | 20 | use PartFire\MangoPayBundle\Services\Hook; |
| 24 | 21 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
| 25 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 26 | -use Symfony\Component\Console\Input\InputDefinition; |
|
| 27 | 22 | use Symfony\Component\Console\Input\InputInterface; |
| 28 | -use Symfony\Component\Console\Input\InputOption; |
|
| 29 | 23 | use Symfony\Component\Console\Output\OutputInterface; |
| 30 | -use Symfony\Component\EventDispatcher\EventDispatcher; |
|
| 31 | -use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
| 32 | 24 | |
| 33 | 25 | class HookListCommand extends ContainerAwareCommand |
| 34 | 26 | { |