@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: device |
|
5 | - * Date: 18.03.16 |
|
6 | - * Time: 18:33 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: device |
|
5 | + * Date: 18.03.16 |
|
6 | + * Time: 18:33 |
|
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: 18.03.16 |
|
6 | - * Time: 18:37 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: device |
|
5 | + * Date: 18.03.16 |
|
6 | + * Time: 18:37 |
|
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: 18.03.16 |
|
6 | - * Time: 18:30 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: device |
|
5 | + * Date: 18.03.16 |
|
6 | + * Time: 18:30 |
|
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: 18.03.16 |
|
6 | - * Time: 18:55 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: device |
|
5 | + * Date: 18.03.16 |
|
6 | + * Time: 18:55 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace AppBundle\Tests\Controller\Admin; |
10 | 10 |
@@ -1,10 +1,10 @@ discard block |
||
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 | |
@@ -21,6 +21,6 @@ discard block |
||
21 | 21 | )); |
22 | 22 | $crawler = $client->request('GET', '/account'); |
23 | 23 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); |
24 | - // $this->assertContains('Add', $crawler->filter('h4')->text()); |
|
24 | + // $this->assertContains('Add', $crawler->filter('h4')->text()); |
|
25 | 25 | } |
26 | 26 | } |
@@ -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:58 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: device |
|
5 | + * Date: 18.03.16 |
|
6 | + * Time: 17:58 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace AppBundle\Tests\Controller; |
10 | 10 |
@@ -23,25 +23,25 @@ discard block |
||
23 | 23 | 'placeholder' => 'enter title' |
24 | 24 | ] |
25 | 25 | ]) |
26 | - ->add('rating', TextType::class,[ |
|
26 | + ->add('rating', TextType::class, [ |
|
27 | 27 | 'attr' => [ |
28 | 28 | 'class' => 'form-control', |
29 | 29 | 'placeholder' => 'enter rating' |
30 | 30 | ] |
31 | 31 | ]) |
32 | - ->add('persentSuccess', TextType::class,[ |
|
32 | + ->add('persentSuccess', TextType::class, [ |
|
33 | 33 | 'attr' => [ |
34 | 34 | 'class' => 'form-control', |
35 | 35 | 'placeholder' => 'enter persent' |
36 | 36 | ] |
37 | 37 | ]) |
38 | - ->add('time', TextType::class,[ |
|
38 | + ->add('time', TextType::class, [ |
|
39 | 39 | 'attr' => [ |
40 | 40 | 'class' => 'form-control', |
41 | 41 | 'placeholder' => 'enter time' |
42 | 42 | ] |
43 | 43 | ]) |
44 | - ->add('attempts', TextType::class,[ |
|
44 | + ->add('attempts', TextType::class, [ |
|
45 | 45 | 'attr' => [ |
46 | 46 | 'class' => 'form-control', |
47 | 47 | 'placeholder' => 'enter attempts' |
@@ -49,19 +49,19 @@ discard block |
||
49 | 49 | ]) |
50 | 50 | ->add('category', EntityType::class, [ |
51 | 51 | 'class' => 'AppBundle\Entity\Category', |
52 | - 'query_builder' => function (EntityRepository $er) { |
|
52 | + 'query_builder' => function(EntityRepository $er) { |
|
53 | 53 | return $er->createQueryBuilder('c') |
54 | 54 | ->orderBy('c.title', 'ASC'); |
55 | 55 | }, |
56 | 56 | 'label' => 'Category', |
57 | 57 | 'property' => 'title', |
58 | - 'attr' => ['class' => 'chosen-select'], |
|
58 | + 'attr' => [ 'class' => 'chosen-select' ], |
|
59 | 59 | 'required' => true |
60 | 60 | ]) |
61 | 61 | ->add('module_image', FileType::class, [ |
62 | 62 | 'required' => false |
63 | 63 | ]) |
64 | - ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
64 | + ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
65 | 65 | $data = $event->getData(); |
66 | 66 | |
67 | 67 |
@@ -12,17 +12,17 @@ |
||
12 | 12 | { |
13 | 13 | public function buildForm(FormBuilderInterface $builder, array $options) |
14 | 14 | { |
15 | - $user = $options['user']; |
|
15 | + $user = $options[ 'user' ]; |
|
16 | 16 | |
17 | 17 | $builder |
18 | 18 | ->add('module', EntityType::class, [ |
19 | 19 | 'class' => 'AppBundle\Entity\Module', |
20 | - 'query_builder' => function (EntityRepository $er) use ($user) { |
|
20 | + 'query_builder' => function(EntityRepository $er) use ($user) { |
|
21 | 21 | return $er->getFreeModulesForUserQuery($user); |
22 | 22 | }, |
23 | 23 | 'label' => 'Choose module', |
24 | 24 | 'property' => 'title', |
25 | - 'attr' => ['class' => 'chosen-select'], |
|
25 | + 'attr' => [ 'class' => 'chosen-select' ], |
|
26 | 26 | 'required' => true |
27 | 27 | ]); |
28 | 28 | } |