Completed
Pull Request — master (#2)
by Kate
03:29
created
src/AppBundle/Controller/Admin/AdminEstateController.php 3 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,6 @@
 block discarded – undo
122 122
      * @Route("/estate/delete/{slug}", name="admin_estate_delete")
123 123
      * @Method("DELETE")
124 124
      * @ParamConverter("estate", options={"mapping": {"slug": "slug"}})
125
-
126 125
      */
127 126
     public function estateDeleteAction(Request $request, Estate $estate)
128 127
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     {
26 26
         // replace this example code with whatever you need
27 27
         return $this->render('AppBundle::admin/index.html.twig', array(
28
-            'base_dir' => realpath($this->getParameter('kernel.root_dir') . '/..'),
28
+            'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..'),
29 29
         ));
30 30
     }
31 31
 
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 AppBundle\Utils;
14 13
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
15 14
 
16 15
 
Please login to merge, or discard this patch.
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/SiteController.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 Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
11 11
 use AppBundle\Form\EstateType;
12 12
 use Symfony\Component\Form\Extension\Core\Type\SubmitType;
13
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
14
-use Symfony\Component\HttpFoundation\Response;
15 13
 
16 14
 
17 15
 /**
Please login to merge, or discard this patch.
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: 17.02.16
6
- * Time: 9:30
7
- */
3
+     * Created by PhpStorm.
4
+     * User: kate
5
+     * Date: 17.02.16
6
+     * Time: 9:30
7
+     */
8 8
 
9 9
 namespace AppBundle\Controller;
10 10
 
@@ -75,7 +75,7 @@  discard block
 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.