@@ -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 | { |
@@ -51,7 +51,7 @@ |
||
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 | { |
@@ -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 | { |
@@ -329,6 +329,9 @@ |
||
329 | 329 | return self::isEventType("PREAUTHORIZATION_", $eventType); |
330 | 330 | } |
331 | 331 | |
332 | + /** |
|
333 | + * @param string $compareToEvent |
|
334 | + */ |
|
332 | 335 | private static function isEventType($compareToEvent, $eventName) |
333 | 336 | { |
334 | 337 | $compareToEventLength = strlen($compareToEvent); |