Completed
Pull Request — master (#2)
by Andrew
02:38
created
src/AppBundle/Controller/Admin/UserController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             $request->query->getInt('page', 1),
63 63
             10
64 64
         );
65
-        return $this->render('@App/admin/user/estates_manager.html.twig', array('pagination' => $pagination));    }
65
+        return $this->render('@App/admin/user/estates_manager.html.twig', array('pagination' => $pagination)); }
66 66
 
67 67
     /**
68 68
      * @Route("/users/lock_user/{username}", name="lock_user")
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use AppBundle\Form\EstateType;
11 11
 use Symfony\Component\Form\Extension\Core\Type\SubmitType;
12 12
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
13
-use Symfony\Component\HttpFoundation\Response;
14 13
 
15 14
 
16 15
 /**
Please login to merge, or discard this patch.
src/AppBundle/Controller/Admin/AdminEstateController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,6 @@
 block discarded – undo
10 10
 use AppBundle\Form\EstateType;
11 11
 use Symfony\Component\Form\Extension\Core\Type\SubmitType;
12 12
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
13
-use AppBundle\Utils;
14
-use Symfony\Component\HttpFoundation\Response;
15 13
 
16 14
 
17 15
 /**
Please login to merge, or discard this patch.
src/AppBundle/Controller/SiteController.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 
11 11
 
12 12
 use AppBundle\Entity\Estate;
13
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
14 13
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
15 14
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
16 15
 use Symfony\Component\HttpFoundation\Request;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
                 if ($commentForm->isSubmitted() && $commentForm->isValid()) {
76 76
                     $comment->setEstate($estate[0]);
77 77
                     if ($this->getUser()->hasRole('ROLE_ADMIN')) {
78
-                       $comment->setEnabled(true);
78
+                        $comment->setEnabled(true);
79 79
                         } else {
80 80
                             $comment->setEnabled(false);
81 81
                         }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     public function searchAction(Request $request)
99 99
     {
100 100
         $finalCategories = $this->container->get('app.final_category_finder')->findFinalCategories();
101
-        $searchForm = $this->createForm(SearchType::class, null,  array(
101
+        $searchForm = $this->createForm(SearchType::class, null, array(
102 102
             'method' => 'GET',
103 103
             'categories_choices' => $finalCategories
104 104
         ))
Please login to merge, or discard this patch.
src/AppBundle/Controller/Admin/AdminCommentController.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,6 @@
 block discarded – undo
10 10
 use AppBundle\Form\EstateType;
11 11
 use Symfony\Component\Form\Extension\Core\Type\SubmitType;
12 12
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
13
-use AppBundle\Utils;
14
-use Symfony\Component\HttpFoundation\Response;
15 13
 
16 14
 
17 15
 /**
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: kate
5
- * Date: 04.03.16
6
- * Time: 22:24
7
- */
3
+     * Created by PhpStorm.
4
+     * User: kate
5
+     * Date: 04.03.16
6
+     * Time: 22:24
7
+     */
8 8
 
9 9
 namespace AppBundle\Controller\Admin;
10 10
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/Admin/AdminCategoryController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
8 8
 use Symfony\Component\HttpFoundation\Request;
9 9
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
10
-use Symfony\Component\Form\Extension\Core\Type\SubmitType;
11 10
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
12 11
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
13 12
 use AppBundle\Form\CategoryType;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     {
124 124
         $entityManager = $this->getDoctrine()->getManager();
125 125
         $repo = $entityManager->getRepository('AppBundle\Entity\Category');
126
-        $deleteForm = $this->createForm(CategoryType::class, $category,['method' => 'DELETE']);
126
+        $deleteForm = $this->createForm(CategoryType::class, $category, ['method' => 'DELETE']);
127 127
         $deleteForm->handleRequest($request);
128 128
         if ($deleteForm->isSubmitted() && $deleteForm->isValid()) {
129 129
             $entityManager->remove($category);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     {
149 149
         $entityManager = $this->getDoctrine()->getManager();
150 150
         $repo = $entityManager->getRepository('AppBundle\Entity\Category');
151
-        if ($category->getParent()){
151
+        if ($category->getParent()) {
152 152
             $repo->moveUp($category);
153 153
             $repo->verify();
154 154
             $repo->recover();
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     {
168 168
         $entityManager = $this->getDoctrine()->getManager();
169 169
         $repo = $entityManager->getRepository('AppBundle\Entity\Category');
170
-        if ($category->getParent()){
170
+        if ($category->getParent()) {
171 171
             $repo->moveDown($category);
172 172
             $repo->verify();
173 173
             $repo->recover();
Please login to merge, or discard this patch.