Completed
Pull Request — master (#2)
by Kate
03:36
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/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.
src/AppBundle/Controller/Admin/AdminEstateController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@  discard block
 block discarded – undo
3 3
 namespace AppBundle\Controller\Admin;
4 4
 
5 5
 use AppBundle\Entity\Estate;
6
-use AppBundle\Entity\File;
7 6
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
8 7
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
9 8
 use Symfony\Component\HttpFoundation\Request;
@@ -11,9 +10,7 @@  discard block
 block discarded – undo
11 10
 use AppBundle\Form\EstateType;
12 11
 use Symfony\Component\Form\Extension\Core\Type\SubmitType;
13 12
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
14
-use AppBundle\Utils;
15 13
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
16
-use Symfony\Component\HttpFoundation\Response;
17 14
 
18 15
 
19 16
 /**
Please login to merge, or discard this patch.
src/AppBundle/Controller/Admin/AdminMenuItemController.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: kate
5
- * Date: 18.03.16
6
- * Time: 11:34
7
- */
3
+     * Created by PhpStorm.
4
+     * User: kate
5
+     * Date: 18.03.16
6
+     * Time: 11:34
7
+     */
8 8
 
9 9
 namespace AppBundle\Controller\Admin;
10 10
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     {
32 32
         $em = $this->getDoctrine()->getManager();
33 33
         $items = $em->getRepository('AppBundle:MenuItem')->findAll();
34
-       return $this->render('@App/admin/menu_item/items.html.twig', array('items' => $items));
34
+        return $this->render('@App/admin/menu_item/items.html.twig', array('items' => $items));
35 35
     }
36 36
 
37 37
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,10 +77,10 @@
 block discarded – undo
77 77
         $em = $this->getDoctrine()->getManager();
78 78
         $form = $this->createForm(MenuItemType::class, $menuItem, [
79 79
             'method' => 'PUT',
80
-            'attr' => [ 'class' => 'horizontal']
80
+            'attr' => ['class' => 'horizontal']
81 81
         ])
82 82
             ->add('submit', SubmitType::class, ['label' => 'Edit',
83
-                'attr' => [ 'class' => 'btn btn-raised btn-default' ]
83
+                'attr' => ['class' => 'btn btn-raised btn-default']
84 84
             ]);
85 85
         if ($request->getMethod() == 'PUT') {
86 86
             $form->handleRequest($request);
Please login to merge, or discard this patch.