Completed
Pull Request — master (#1041)
by Rafał
10:17
created
src/SWP/Bundle/CoreBundle/Command/ProcessPackagesCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
 use function explode;
22 22
 use Knp\Component\Pager\Pagination\SlidingPagination;
23 23
 use Knp\Component\Pager\PaginatorInterface;
24
-use OldSound\RabbitMqBundle\RabbitMq\ProducerInterface;
25 24
 use SWP\Bundle\CoreBundle\Repository\PackageRepositoryInterface;
26 25
 use SWP\Bundle\MultiTenancyBundle\MultiTenancyEvents;
27 26
 use SWP\Component\Bridge\Model\PackageInterface;
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/MessageHandler/AbstractContentPushHandler.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 
19 19
 use Doctrine\DBAL\Exception\NotNullConstraintViolationException;
20 20
 use Doctrine\ORM\EntityManagerInterface;
21
-use Doctrine\ORM\NonUniqueResultException;
22 21
 use Psr\Log\LoggerInterface;
23 22
 use Sentry\Breadcrumb;
24 23
 use Sentry\State\HubInterface;
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/MessageHandler/ImageConversionHandler.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -112,6 +112,9 @@
 block discarded – undo
112 112
         }
113 113
     }
114 114
 
115
+    /**
116
+     * @param ImageInterface $image
117
+     */
115 118
     private function markArticlesMediaAsUpdated($image)
116 119
     {
117 120
         /** @var ImageRenditionInterface[] $articleMedia */
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/EventListener/ImageToWebpConversionListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 
53 53
         $tenantId = $this->tenantContext->getTenant()->getId();
54 54
 
55
-        $this->eventDispatcher->addListener(KernelEvents::TERMINATE, function (TerminateEvent $event) use ($rendition, $tenantId) {
55
+        $this->eventDispatcher->addListener(KernelEvents::TERMINATE, function(TerminateEvent $event) use ($rendition, $tenantId) {
56 56
             $this->messageBus->dispatch(new ConvertImageMessage(
57 57
                 (int) $rendition->getImage()->getId(),
58 58
                 (int) $tenantId
Please login to merge, or discard this patch.