Completed
Pull Request — master (#1041)
by Rafał
11:11
created
src/SWP/Bundle/CoreBundle/Controller/ContentListItemController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -307,6 +307,9 @@
 block discarded – undo
307 307
         return new SingleResourceResponse($form, new ResponseContext(400));
308 308
     }
309 309
 
310
+    /**
311
+     * @param ContentListInterface $listId
312
+     */
310 313
     private function findByContentOr404($listId, $contentId): ContentListItemInterface
311 314
     {
312 315
         /** @var ContentListItemInterface $listItem */
Please login to merge, or discard this patch.
src/SWP/Bundle/FixturesBundle/DataFixtures/ORM/LoadArticlesData.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -59,6 +59,10 @@  discard block
 block discarded – undo
59 59
         $manager->flush();
60 60
     }
61 61
 
62
+    /**
63
+     * @param string $env
64
+     * @param ObjectManager $manager
65
+     */
62 66
     public function loadRoutes($env, $manager): void
63 67
     {
64 68
         $routes = [
@@ -221,6 +225,9 @@  discard block
 block discarded – undo
221 225
         $manager->flush();
222 226
     }
223 227
 
228
+    /**
229
+     * @param string $env
230
+     */
224 231
     public function loadArticles($env, ObjectManager $manager): void
225 232
     {
226 233
         $articleDataProvider = $this->container->get(ArticleDataProvider::class);
@@ -576,6 +583,10 @@  discard block
 block discarded – undo
576 583
         return $articleStatistics;
577 584
     }
578 585
 
586
+    /**
587
+     * @param string $fakeImage
588
+     * @param string $targetFile
589
+     */
579 590
     private function cropAndResizeImage($fakeImage, array $rendition, $targetFile): void
580 591
     {
581 592
         $image = imagecreatefromjpeg($fakeImage);
Please login to merge, or discard this patch.
SWP/Bundle/FixturesBundle/DataFixtures/ORM/LoadArticlesSlideshowsData.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -38,6 +38,10 @@
 block discarded – undo
38 38
         $manager->flush();
39 39
     }
40 40
 
41
+    /**
42
+     * @param string $env
43
+     * @param ObjectManager $manager
44
+     */
41 45
     public function loadArticles($env, $manager)
42 46
     {
43 47
         $articles = [
Please login to merge, or discard this patch.
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/ContentPushHandler.php 1 patch
Unused Use Statements   -8 removed lines patch added patch discarded remove patch
@@ -16,15 +16,7 @@
 block discarded – undo
16 16
 
17 17
 namespace SWP\Bundle\CoreBundle\MessageHandler;
18 18
 
19
-use Doctrine\ORM\EntityManagerInterface;
20
-use Psr\Log\LoggerInterface;
21
-use Sentry\State\HubInterface;
22
-use SWP\Bundle\BridgeBundle\Doctrine\ORM\PackageRepository;
23
-use SWP\Bundle\CoreBundle\Hydrator\PackageHydratorInterface;
24 19
 use SWP\Bundle\CoreBundle\MessageHandler\Message\ContentPushMessage;
25
-use SWP\Component\Bridge\Transformer\DataTransformerInterface;
26
-use SWP\Component\MultiTenancy\Context\TenantContextInterface;
27
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
28 20
 use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
29 21
 
30 22
 class ContentPushHandler implements MessageHandlerInterface
Please login to merge, or discard this patch.