Passed
Push — master ( 92daf4...591509 )
by
unknown
02:27
created
DependencyInjection/PartFireMangoPayExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
 }
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
@@ -50,17 +50,21 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Models/Adapters/UserQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Models/Adapters/WalletQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Models/Adapters/KycDocumentPageQuery.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
     /**
53 53
      * @param KycDocumentPage $kycDocumentPage
54
-     * @return KycDocumentPage|PartFireException
54
+     * @return PartFireException|null
55 55
      */
56 56
     public function create(KycDocumentPage $kycDocumentPage)
57 57
     {
Please login to merge, or discard this patch.
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.
Models/Adapters/HookQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
 
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
@@ -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.
Command/HookUpdateAllCommand.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $responses = [];
55 55
 
56 56
         $hookItems = $this->getHookService()->list();
57
-        foreach($hookItems as $hook) {
57
+        foreach ($hookItems as $hook) {
58 58
             $hookId = $hook->Id;
59 59
             $this->output->infoid("Updating Hook ID " . $hookId . " with " . $url);
60 60
             $responses[] = $this->getHookService()->update($hookId, $url);
Please login to merge, or discard this patch.