@@ -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 | |
@@ -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(); |
@@ -3,7 +3,6 @@ discard block |
||
| 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 |
||
| 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 | /** |
@@ -1,10 +1,10 @@ discard block |
||
| 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 |
||
| 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 | /** |
@@ -77,10 +77,10 @@ |
||
| 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); |