@@ -122,7 +122,6 @@ |
||
| 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 | { |
@@ -25,7 +25,7 @@ |
||
| 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 | |
@@ -10,7 +10,6 @@ |
||
| 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 | |
@@ -62,7 +62,7 @@ |
||
| 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") |
@@ -10,7 +10,6 @@ |
||
| 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 | /** |
@@ -10,8 +10,6 @@ |
||
| 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 | /** |
@@ -1,10 +1,10 @@ |
||
| 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 | |
@@ -10,8 +10,6 @@ |
||
| 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 | /** |
@@ -1,10 +1,10 @@ discard block |
||
| 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 |
||
| 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 | } |