@@ -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 | /** |
@@ -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 | |
@@ -7,7 +7,6 @@ |
||
| 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; |
@@ -123,7 +123,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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(); |