Completed
Push — 2.x ( 2dc0e1 )
by Sullivan
18:32
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.
Block/RecentCommentsBlockService.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,8 @@
 block discarded – undo
15 15
 use Sonata\CoreBundle\Model\ManagerInterface;
16 16
 use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
17 17
 use Symfony\Component\HttpFoundation\Response;
18
-
19 18
 use Sonata\AdminBundle\Form\FormMapper;
20 19
 use Sonata\AdminBundle\Validator\ErrorElement;
21
-
22 20
 use Sonata\BlockBundle\Model\BlockInterface;
23 21
 use Sonata\BlockBundle\Block\BaseBlockService;
24 22
 use Symfony\Component\OptionsResolver\OptionsResolverInterface;
Please login to merge, or discard this patch.
Block/RecentPostsBlockService.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,8 @@
 block discarded – undo
15 15
 use Sonata\CoreBundle\Model\ManagerInterface;
16 16
 use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
17 17
 use Symfony\Component\HttpFoundation\Response;
18
-
19 18
 use Sonata\AdminBundle\Form\FormMapper;
20 19
 use Sonata\AdminBundle\Validator\ErrorElement;
21
-
22 20
 use Sonata\BlockBundle\Model\BlockInterface;
23 21
 use Sonata\BlockBundle\Block\BaseBlockService;
24 22
 use Symfony\Component\OptionsResolver\OptionsResolverInterface;
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.
Controller/PostController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,10 +11,8 @@
 block discarded – undo
11 11
 namespace Sonata\NewsBundle\Controller;
12 12
 
13 13
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
14
-
15 14
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
16 15
 use Symfony\Component\Security\Core\Exception\AccessDeniedException;
17
-
18 16
 use Symfony\Component\Form\Form;
19 17
 use Symfony\Component\HttpFoundation\RedirectResponse;
20 18
 use Sonata\NewsBundle\Model\CommentInterface;
Please login to merge, or discard this patch.
DependencyInjection/SonataNewsExtension.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 use Symfony\Component\Config\Definition\Processor;
19 19
 use Symfony\Component\DependencyInjection\Definition;
20 20
 use Symfony\Component\DependencyInjection\Reference;
21
-
22 21
 use Sonata\EasyExtendsBundle\Mapper\DoctrineCollector;
23 22
 
24 23
 /**
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.