Passed
Push — master ( ffec38...d087b3 )
by
unknown
02:56
created
Command/HookListCommand.php 1 patch
Unused Use Statements   -8 removed lines patch added patch discarded remove patch
@@ -16,19 +16,11 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Services/HookHandleService.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Command/HookCreateAllCommand.php 1 patch
Unused Use Statements   -8 removed lines patch added patch discarded remove patch
@@ -14,20 +14,12 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Command/HookUpdateAllCommand.php 1 patch
Unused Use Statements   -8 removed lines patch added patch discarded remove patch
@@ -14,19 +14,11 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Models/DTOs/Translators/TransferTranslator.php 1 patch
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -53,17 +53,21 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.