@@ -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; |
@@ -14,20 +14,12 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace PartFire\MangoPayBundle\Command; |
| 16 | 16 | |
| 17 | -use Fruitful\IdentityCheckBundle\Entity\IdentityCheck; |
|
| 18 | -use Fruitful\IdentityCheckBundle\Entity\Repository\IdentityCheckFactoryRepository; |
|
| 19 | -use Fruitful\IdentityCheckBundle\Event\IdentityCheckUpdateEvent; |
|
| 20 | 17 | use PartFire\CommonBundle\Services\Output\Cli\ConsoleOutput; |
| 21 | 18 | use PartFire\MangoPayBundle\MangoPayConstants; |
| 22 | 19 | use PartFire\MangoPayBundle\Services\Hook; |
| 23 | 20 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
| 24 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 25 | -use Symfony\Component\Console\Input\InputDefinition; |
|
| 26 | 21 | use Symfony\Component\Console\Input\InputInterface; |
| 27 | -use Symfony\Component\Console\Input\InputOption; |
|
| 28 | 22 | use Symfony\Component\Console\Output\OutputInterface; |
| 29 | -use Symfony\Component\EventDispatcher\EventDispatcher; |
|
| 30 | -use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
| 31 | 23 | |
| 32 | 24 | class HookCreateAllCommand extends ContainerAwareCommand |
| 33 | 25 | { |
@@ -14,19 +14,11 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace PartFire\MangoPayBundle\Command; |
| 16 | 16 | |
| 17 | -use Fruitful\IdentityCheckBundle\Entity\IdentityCheck; |
|
| 18 | -use Fruitful\IdentityCheckBundle\Entity\Repository\IdentityCheckFactoryRepository; |
|
| 19 | -use Fruitful\IdentityCheckBundle\Event\IdentityCheckUpdateEvent; |
|
| 20 | 17 | use PartFire\CommonBundle\Services\Output\Cli\ConsoleOutput; |
| 21 | 18 | use PartFire\MangoPayBundle\Services\Hook; |
| 22 | 19 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
| 23 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 24 | -use Symfony\Component\Console\Input\InputDefinition; |
|
| 25 | 20 | use Symfony\Component\Console\Input\InputInterface; |
| 26 | -use Symfony\Component\Console\Input\InputOption; |
|
| 27 | 21 | use Symfony\Component\Console\Output\OutputInterface; |
| 28 | -use Symfony\Component\EventDispatcher\EventDispatcher; |
|
| 29 | -use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
| 30 | 22 | |
| 31 | 23 | class HookUpdateAllCommand extends ContainerAwareCommand |
| 32 | 24 | { |
@@ -53,17 +53,21 @@ |
||
| 53 | 53 | $transfer->setResultCode($mangoPayTransfer->ResultCode); |
| 54 | 54 | $transfer->setResultMessage($mangoPayTransfer->ResultMessage); |
| 55 | 55 | |
| 56 | - if (isset($mangoPayTransfer->Fees->Currency)) |
|
| 57 | - $transfer->setFeeCurrency($mangoPayTransfer->Fees->Currency); |
|
| 56 | + if (isset($mangoPayTransfer->Fees->Currency)) { |
|
| 57 | + $transfer->setFeeCurrency($mangoPayTransfer->Fees->Currency); |
|
| 58 | + } |
|
| 58 | 59 | |
| 59 | - if (isset($mangoPayTransfer->Fees->Amount)) |
|
| 60 | - $transfer->setFeeAmount($mangoPayTransfer->Fees->Amount); |
|
| 60 | + if (isset($mangoPayTransfer->Fees->Amount)) { |
|
| 61 | + $transfer->setFeeAmount($mangoPayTransfer->Fees->Amount); |
|
| 62 | + } |
|
| 61 | 63 | |
| 62 | - if (isset($mangoPayTransfer->DebitedFunds->Currency)) |
|
| 63 | - $transfer->setDebitedCurrency($mangoPayTransfer->DebitedFunds->Currency); |
|
| 64 | + if (isset($mangoPayTransfer->DebitedFunds->Currency)) { |
|
| 65 | + $transfer->setDebitedCurrency($mangoPayTransfer->DebitedFunds->Currency); |
|
| 66 | + } |
|
| 64 | 67 | |
| 65 | - if (isset($mangoPayTransfer->DebitedFunds->Amount)) |
|
| 66 | - $transfer->setDebitedAmount($mangoPayTransfer->DebitedFunds->Amount); |
|
| 68 | + if (isset($mangoPayTransfer->DebitedFunds->Amount)) { |
|
| 69 | + $transfer->setDebitedAmount($mangoPayTransfer->DebitedFunds->Amount); |
|
| 70 | + } |
|
| 67 | 71 | |
| 68 | 72 | return $transfer; |
| 69 | 73 | } |