@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | return $this->redirectToRoute('show_category'); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - return ['form' => $form->createView()]; |
|
| 40 | + return [ 'form' => $form->createView() ]; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | return $this->redirectToRoute('show_category'); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - return ['form' => $form->createView()]; |
|
| 63 | + return [ 'form' => $form->createView() ]; |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
@@ -90,12 +90,12 @@ discard block |
||
| 90 | 90 | $em = $this->getDoctrine()->getManager(); |
| 91 | 91 | |
| 92 | 92 | $category = $em->getRepository('AppBundle:Category') |
| 93 | - ->findBy([], ['title' => 'ASC']); |
|
| 93 | + ->findBy([ ], [ 'title' => 'ASC' ]); |
|
| 94 | 94 | |
| 95 | - $form_delete = []; |
|
| 95 | + $form_delete = [ ]; |
|
| 96 | 96 | |
| 97 | 97 | foreach ($category as $item) { |
| 98 | - $form_delete[$item->getId()] = $this->createFormDelete($item->getId())->createView(); |
|
| 98 | + $form_delete[ $item->getId() ] = $this->createFormDelete($item->getId())->createView(); |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | return [ |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | private function createFormDelete($id) |
| 112 | 112 | { |
| 113 | 113 | return $this->createFormBuilder() |
| 114 | - ->setAction($this->generateUrl('remove_category', ['id' => $id])) |
|
| 114 | + ->setAction($this->generateUrl('remove_category', [ 'id' => $id ])) |
|
| 115 | 115 | ->setMethod('DELETE') |
| 116 | 116 | ->add('submit', SubmitType::class, [ |
| 117 | 117 | 'label' => ' ', |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $moduleAjax = $em->getRepository('AppBundle:PassModule') |
| 27 | 27 | ->findAjax($module); |
| 28 | 28 | |
| 29 | - return new Response(json_encode(['moduleAjax' => $moduleAjax])); |
|
| 29 | + return new Response(json_encode([ 'moduleAjax' => $moduleAjax ])); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | $modules = $em->getRepository('AppBundle:ModuleUser') |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: device |
|
| 5 | - * Date: 23.02.16 |
|
| 6 | - * Time: 10:32 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: device |
|
| 5 | + * Date: 23.02.16 |
|
| 6 | + * Time: 10:32 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace AppBundle\Repository; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: device |
|
| 5 | - * Date: 18.03.16 |
|
| 6 | - * Time: 18:34 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: device |
|
| 5 | + * Date: 18.03.16 |
|
| 6 | + * Time: 18:34 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace AppBundle\Tests\Controller\Admin; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: device |
|
| 5 | - * Date: 26.02.16 |
|
| 6 | - * Time: 14:53 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: device |
|
| 5 | + * Date: 26.02.16 |
|
| 6 | + * Time: 14:53 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace AppBundle\Services; |
| 10 | 10 | |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 8 | 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 9 | 9 | use Symfony\Component\HttpFoundation\Request; |
| 10 | -use Symfony\Component\HttpFoundation\Response; |
|
| 11 | 10 | |
| 12 | 11 | class AccountController extends Controller |
| 13 | 12 | { |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: device |
|
| 5 | - * Date: 18.03.16 |
|
| 6 | - * Time: 17:54 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: device |
|
| 5 | + * Date: 18.03.16 |
|
| 6 | + * Time: 17:54 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace AppBundle\Tests\Controller; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: device |
|
| 5 | - * Date: 18.03.16 |
|
| 6 | - * Time: 17:32 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: device |
|
| 5 | + * Date: 18.03.16 |
|
| 6 | + * Time: 17:32 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace AppBundle\Tests\Controller\Account; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: device |
|
| 5 | - * Date: 19.03.16 |
|
| 6 | - * Time: 10:05 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: device |
|
| 5 | + * Date: 19.03.16 |
|
| 6 | + * Time: 10:05 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace AppBundle\Services; |
| 10 | 10 | |