Completed
Push — 2.x ( 2dc0e1...b656c0 )
by Sullivan
19:04 queued 14:23
created
Admin/PostAdmin.php 1 patch
Unused Use Statements   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,15 +17,11 @@
 block discarded – undo
17 17
 use Sonata\AdminBundle\Datagrid\DatagridMapper;
18 18
 use Sonata\AdminBundle\Datagrid\ListMapper;
19 19
 use Sonata\AdminBundle\Show\ShowMapper;
20
-use Sonata\FormatterBundle\Formatter\Pool as FormatterPool;
21
-use Sonata\CoreBundle\Model\ManagerInterface;
22
-
23
-use Knp\Menu\ItemInterface as MenuItemInterface;
24 20
 use Sonata\FormatterBundle\Formatter\Pool;
21
+use Knp\Menu\ItemInterface as MenuItemInterface;
25 22
 use Sonata\NewsBundle\Model\CommentInterface;
26 23
 use Sonata\NewsBundle\Permalink\PermalinkInterface;
27 24
 use Sonata\UserBundle\Model\UserManagerInterface;
28
-use Symfony\Component\Routing\RouterInterface;
29 25
 
30 26
 class PostAdmin extends Admin
31 27
 {
Please login to merge, or discard this patch.
Controller/Api/CommentController.php 1 patch
Unused Use Statements   -7 removed lines patch added patch discarded remove patch
@@ -13,16 +13,9 @@
 block discarded – undo
13 13
 
14 14
 use FOS\RestBundle\Controller\Annotations\View;
15 15
 use FOS\RestBundle\Controller\Annotations\Route;
16
-
17
-use JMS\Serializer\SerializationContext;
18
-
19 16
 use Nelmio\ApiDocBundle\Annotation\ApiDoc;
20
-
21 17
 use Sonata\NewsBundle\Model\Comment;
22 18
 use Sonata\NewsBundle\Model\CommentManagerInterface;
23
-
24
-use Symfony\Component\Form\FormFactoryInterface;
25
-use Symfony\Component\HttpFoundation\Request;
26 19
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
27 20
 
28 21
 /**
Please login to merge, or discard this patch.
Controller/Api/PostController.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -15,19 +15,15 @@
 block discarded – undo
15 15
 use FOS\RestBundle\Controller\Annotations\View;
16 16
 use FOS\RestBundle\Controller\Annotations\Route;
17 17
 use FOS\RestBundle\Request\ParamFetcherInterface;
18
-
19 18
 use JMS\Serializer\SerializationContext;
20 19
 use Nelmio\ApiDocBundle\Annotation\ApiDoc;
21
-
22 20
 use Application\Sonata\NewsBundle\Entity\Post;
23
-
24 21
 use Sonata\DatagridBundle\Pager\PagerInterface;
25 22
 use Sonata\FormatterBundle\Formatter\Pool as FormatterPool;
26 23
 use Sonata\NewsBundle\Mailer\MailerInterface;
27 24
 use Sonata\NewsBundle\Model\Comment;
28 25
 use Sonata\NewsBundle\Model\CommentManagerInterface;
29 26
 use Sonata\NewsBundle\Model\PostManagerInterface;
30
-
31 27
 use Symfony\Component\Form\FormFactoryInterface;
32 28
 use Symfony\Component\Form\FormInterface;
33 29
 use Symfony\Component\HttpFoundation\Request;
Please login to merge, or discard this patch.
Document/CommentManager.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,10 +11,7 @@
 block discarded – undo
11 11
 namespace Sonata\NewsBundle\Document;
12 12
 
13 13
 use Sonata\CoreBundle\Model\BaseDocumentManager;
14
-use Sonata\NewsBundle\Model\CommentManager as ModelCommentManager;
15 14
 use Sonata\NewsBundle\Model\CommentInterface;
16
-use Doctrine\ODM\MongoDB\DocumentManager;
17
-
18 15
 use Sonata\DoctrineMongoDBAdminBundle\Datagrid\Pager;
19 16
 use Sonata\DoctrineMongoDBAdminBundle\Datagrid\ProxyQuery;
20 17
 use Sonata\NewsBundle\Model\CommentManagerInterface;
Please login to merge, or discard this patch.
Document/PostManager.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -10,12 +10,9 @@
 block discarded – undo
10 10
  */
11 11
 namespace Sonata\NewsBundle\Document;
12 12
 
13
-use Doctrine\DBAL\Connection;
14 13
 use Sonata\CoreBundle\Model\BaseDocumentManager;
15 14
 use Sonata\DoctrineMongoDBAdminBundle\Datagrid\Pager;
16 15
 use Sonata\DoctrineMongoDBAdminBundle\Datagrid\ProxyQuery;
17
-
18
-use Doctrine\ODM\MongoDB\DocumentManager;
19 16
 use Sonata\NewsBundle\Model\PostManagerInterface;
20 17
 
21 18
 class PostManager extends BaseDocumentManager implements PostManagerInterface
Please login to merge, or discard this patch.
Entity/BasePostRepository.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace Sonata\NewsBundle\Entity;
13 13
 
14 14
 use Doctrine\ORM\EntityRepository;
15
-
16 15
 use Sonata\NewsBundle\Model\PostInterface;
17 16
 
18 17
 class BasePostRepository extends EntityRepository
Please login to merge, or discard this patch.
Entity/CommentManager.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,10 +14,8 @@
 block discarded – undo
14 14
 use Sonata\CoreBundle\Model\ManagerInterface;
15 15
 use Sonata\NewsBundle\Model\CommentInterface;
16 16
 use Doctrine\Common\Persistence\ManagerRegistry;
17
-
18 17
 use Sonata\NewsBundle\Model\CommentManagerInterface;
19 18
 use Sonata\NewsBundle\Model\PostInterface;
20
-
21 19
 use Sonata\DatagridBundle\Pager\Doctrine\Pager;
22 20
 use Sonata\DatagridBundle\ProxyQuery\Doctrine\ProxyQuery;
23 21
 
Please login to merge, or discard this patch.
Entity/PostManager.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -10,14 +10,11 @@
 block discarded – undo
10 10
  */
11 11
 namespace Sonata\NewsBundle\Entity;
12 12
 
13
-use Doctrine\ORM\NoResultException;
14 13
 use Doctrine\ORM\Query\Expr\Join;
15 14
 use Sonata\CoreBundle\Model\BaseEntityManager;
16 15
 use Sonata\ClassificationBundle\Model\CollectionInterface;
17
-
18 16
 use Sonata\DatagridBundle\Pager\Doctrine\Pager;
19 17
 use Sonata\DatagridBundle\ProxyQuery\Doctrine\ProxyQuery;
20
-
21 18
 use Sonata\NewsBundle\Model\BlogInterface;
22 19
 use Sonata\NewsBundle\Model\PostInterface;
23 20
 use Sonata\NewsBundle\Model\PostManagerInterface;
Please login to merge, or discard this patch.
Block/RecentCommentsBlockService.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,10 +14,8 @@
 block discarded – undo
14 14
 use Sonata\CoreBundle\Model\ManagerInterface;
15 15
 use Sonata\NewsBundle\Model\CommentInterface;
16 16
 use Doctrine\Common\Persistence\ManagerRegistry;
17
-
18 17
 use Sonata\NewsBundle\Model\CommentManagerInterface;
19 18
 use Sonata\NewsBundle\Model\PostInterface;
20
-
21 19
 use Sonata\DatagridBundle\Pager\Doctrine\Pager;
22 20
 use Sonata\DatagridBundle\ProxyQuery\Doctrine\ProxyQuery;
23 21
 
Please login to merge, or discard this patch.