@@ -50,17 +50,21 @@ |
||
| 50 | 50 | $transfer->setDebitedWalledId($mangoPayTransfer->DebitedWalletId); |
| 51 | 51 | $transfer->setCreditedWalledId($mangoPayTransfer->CreditedWalletId); |
| 52 | 52 | |
| 53 | - if (isset($mangoPayTransfer->Fees->Currency)) |
|
| 54 | - $transfer->setFeeCurrency($mangoPayTransfer->Fees->Currency); |
|
| 53 | + if (isset($mangoPayTransfer->Fees->Currency)) { |
|
| 54 | + $transfer->setFeeCurrency($mangoPayTransfer->Fees->Currency); |
|
| 55 | + } |
|
| 55 | 56 | |
| 56 | - if (isset($mangoPayTransfer->Fees->Amount)) |
|
| 57 | - $transfer->setFeeAmount($mangoPayTransfer->Fees->Amount); |
|
| 57 | + if (isset($mangoPayTransfer->Fees->Amount)) { |
|
| 58 | + $transfer->setFeeAmount($mangoPayTransfer->Fees->Amount); |
|
| 59 | + } |
|
| 58 | 60 | |
| 59 | - if (isset($mangoPayTransfer->DebitedFunds->Currency)) |
|
| 60 | - $transfer->setDebitedCurrency($mangoPayTransfer->DebitedFunds->Currency); |
|
| 61 | + if (isset($mangoPayTransfer->DebitedFunds->Currency)) { |
|
| 62 | + $transfer->setDebitedCurrency($mangoPayTransfer->DebitedFunds->Currency); |
|
| 63 | + } |
|
| 61 | 64 | |
| 62 | - if (isset($mangoPayTransfer->DebitedFunds->Amount)) |
|
| 63 | - $transfer->setDebitedAmount($mangoPayTransfer->DebitedFunds->Amount); |
|
| 65 | + if (isset($mangoPayTransfer->DebitedFunds->Amount)) { |
|
| 66 | + $transfer->setDebitedAmount($mangoPayTransfer->DebitedFunds->Amount); |
|
| 67 | + } |
|
| 64 | 68 | |
| 65 | 69 | return $transfer; |
| 66 | 70 | } |
@@ -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 | { |
@@ -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 | { |
@@ -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 | { |
@@ -14,8 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace PartFire\MangoPayBundle\Services; |
| 16 | 16 | |
| 17 | -use Composer\EventDispatcher\Event; |
|
| 18 | -use Fruitful\FFConstants; |
|
| 19 | 17 | use PartFire\CommonBundle\Services\Output\CommonOutputInterface; |
| 20 | 18 | use PartFire\MangoPayBundle\Entity\Hook; |
| 21 | 19 | use PartFire\MangoPayBundle\Entity\Repository\HookRepository; |