Completed
Pull Request — master (#2)
by Alexandre
03:35 queued 01:45
created
src/Page/Application/Service/WebPageReadService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     }
43 43
 
44 44
     /**
45
-     * @param $id
45
+     * @param \Black\Page\Domain\Model\WebPageId $id
46 46
      *
47 47
      * @return WebPageDTO
48 48
      */
Please login to merge, or discard this patch.
src/Page/Infrastructure/CQRS/Handler/WriteWebPageHandler.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Black\Page\Infrastructure\CQRS\Handler;
4 4
 
5 5
 use Black\DDD\CQRSinPHP\Infrastructure\CQRS\Command;
6
-use Black\Page\Domain\Model\WebPageId;
7 6
 use Black\Page\Domain\Model\WebPageWriteRepository;
8 7
 use Black\Page\Domain\Event\WebPageWritedEvent;
9 8
 use Black\Page\Infrastructure\Service\WebPageReadService;
Please login to merge, or discard this patch.
src/Page/Infrastructure/Persistence/DoctrineMongoDBRepository.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 class ReadRepository extends EntityRepository implements WebPageReadRepository
15 15
 {
16 16
     /**
17
-     * @param mixed $id
17
+     * @param WebPageId $id
18 18
      * @return mixed
19 19
      * @throws \Doctrine\ORM\NoResultException
20 20
      * @throws \Doctrine\ORM\NonUniqueResultException
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Black\Page\Infrastructure\Persistence;
4 4
 
5 5
 use Black\Bridge\Doctrine\Common\Persistence\MongoDB\MongoDBRepository;
6
-use Black\Bridge\Doctrine\Common\Persistence\ORMRepository;
7 6
 use Black\Page\Domain\Model\WebPage;
8 7
 use Black\Page\Domain\Model\WebPageId;
9 8
 use Black\Page\Domain\Model\WebPageRepository;
Please login to merge, or discard this patch.
src/Page/Infrastructure/Persistence/DoctrineORMRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 class ReadRepository extends EntityRepository implements WebPageReadRepository
15 15
 {
16 16
     /**
17
-     * @param mixed $id
17
+     * @param WebPageId $id
18 18
      * @return mixed
19 19
      * @throws \Doctrine\ORM\NoResultException
20 20
      * @throws \Doctrine\ORM\NonUniqueResultException
Please login to merge, or discard this patch.
Infrastructure/Bridge/Symfony/PageBundle/Listener/FlashNoticeListener.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Symfony\Component\EventDispatcher\Event;
7 7
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
8 8
 use Symfony\Component\HttpFoundation\Session\Session;
9
-use Symfony\Component\Translation\Translator;
10 9
 use Symfony\Component\Translation\TranslatorInterface;
11 10
 
12 11
 /**
Please login to merge, or discard this patch.
src/Page/Infrastructure/Service/WebPageReadService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     /**
27 27
      * @param WebPageId $webPageId
28
-     * @return mixed
28
+     * @return \Black\Page\Domain\Model\WebPage
29 29
      */
30 30
     public function read(WebPageId $webPageId)
31 31
     {
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     /**
42 42
      * @param $slug
43
-     * @return mixed
43
+     * @return \Black\Page\Domain\Model\WebPage
44 44
      */
45 45
     public function readBySlug($slug)
46 46
     {
Please login to merge, or discard this patch.
src/Page/Infrastructure/Service/WebPageWriteService.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Black\Page\Domain\Model\WebPage;
6 6
 use Black\Page\Domain\Model\WebPageId;
7
-use Black\Page\Domain\Model\WebPageWriteRepository;
8 7
 use Black\Page\Infrastructure\Persistence\CQRS\WriteRepository;
9 8
 use Cocur\Slugify\Slugify;
10 9
 
Please login to merge, or discard this patch.