@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | // replace this example code with whatever you need |
17 | 17 | return $this->render('default/index.html.twig', array( |
18 | - 'base_dir' => realpath($this->container->getParameter('kernel.root_dir').'/..'), |
|
18 | + 'base_dir' => realpath($this->container->getParameter('kernel.root_dir') . '/..'), |
|
19 | 19 | )); |
20 | 20 | } |
21 | 21 | } |
@@ -28,21 +28,21 @@ discard block |
||
28 | 28 | |
29 | 29 | if ($env == 'test') { |
30 | 30 | return [ |
31 | - __DIR__.'/test/role.yml', |
|
32 | - __DIR__.'/test/tag.yml', |
|
33 | - __DIR__.'/test/category.yml', |
|
34 | - __DIR__.'/test/user.yml', |
|
35 | - __DIR__.'/test/article.yml', |
|
36 | - __DIR__.'/test/comment.yml', |
|
31 | + __DIR__ . '/test/role.yml', |
|
32 | + __DIR__ . '/test/tag.yml', |
|
33 | + __DIR__ . '/test/category.yml', |
|
34 | + __DIR__ . '/test/user.yml', |
|
35 | + __DIR__ . '/test/article.yml', |
|
36 | + __DIR__ . '/test/comment.yml', |
|
37 | 37 | ]; |
38 | 38 | } |
39 | 39 | return [ |
40 | - __DIR__.'/dev/role.yml', |
|
41 | - __DIR__.'/dev/tag.yml', |
|
42 | - __DIR__.'/dev/category.yml', |
|
43 | - __DIR__.'/dev/user.yml', |
|
44 | - __DIR__.'/dev/article.yml', |
|
45 | - __DIR__.'/dev/comment.yml', |
|
40 | + __DIR__ . '/dev/role.yml', |
|
41 | + __DIR__ . '/dev/tag.yml', |
|
42 | + __DIR__ . '/dev/category.yml', |
|
43 | + __DIR__ . '/dev/user.yml', |
|
44 | + __DIR__ . '/dev/article.yml', |
|
45 | + __DIR__ . '/dev/comment.yml', |
|
46 | 46 | ]; |
47 | 47 | } |
48 | 48 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | 'anonymous', |
56 | 56 | ]; |
57 | 57 | |
58 | - return $roles[$count-1]; |
|
58 | + return $roles[$count - 1]; |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | public function picture() |
@@ -91,8 +91,8 @@ |
||
91 | 91 | $query |
92 | 92 | ->where('a.createdAt >= ?1') |
93 | 93 | ->andWhere('a.createdAt <= ?2') |
94 | - ->setParameter(1, $param." 00:00:00") |
|
95 | - ->setParameter(2, $param." 23:59:59"); |
|
94 | + ->setParameter(1, $param . " 00:00:00") |
|
95 | + ->setParameter(2, $param . " 23:59:59"); |
|
96 | 96 | break; |
97 | 97 | } |
98 | 98 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: victor |
|
5 | - * Date: 08.01.16 |
|
6 | - * Time: 18:45 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: victor |
|
5 | + * Date: 08.01.16 |
|
6 | + * Time: 18:45 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace AppBundle\Twig; |
10 | 10 |
@@ -24,9 +24,9 @@ |
||
24 | 24 | $this->assertContains('1 Comments', $crawler->filter('.post-comment a')->text()); |
25 | 25 | $this->assertContains('Test category (1)', $crawler->filter('.widget .category-list a')->text()); |
26 | 26 | $this->assertContains('5 Test title', $crawler->filter('.widget .blogposts.popular a')->text()); |
27 | - $this->assertContains($date->format('M d, Y').' | by User name', $crawler->filter('.widget .blogposts.popular .text-muted')->text()); |
|
27 | + $this->assertContains($date->format('M d, Y') . ' | by User name', $crawler->filter('.widget .blogposts.popular .text-muted')->text()); |
|
28 | 28 | $this->assertContains('Test title', $crawler->filter('.widget .blogposts.latest a')->text()); |
29 | - $this->assertContains($date->format('M d, Y').' | by User name', $crawler->filter('.widget .blogposts.latest .text-muted')->text()); |
|
29 | + $this->assertContains($date->format('M d, Y') . ' | by User name', $crawler->filter('.widget .blogposts.latest .text-muted')->text()); |
|
30 | 30 | $this->assertContains('User name', $crawler->filter('.widget .recent-comments .media-heading a')->eq(0)->text()); |
31 | 31 | $this->assertContains('Test title', $crawler->filter('.widget .recent-comments .media-heading a')->eq(1)->text()); |
32 | 32 | $this->assertContains('Text comment', $crawler->filter('.widget .recent-comments .text-muted')->text()); |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: victor |
|
5 | - * Date: 10.01.16 |
|
6 | - * Time: 12:49 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: victor |
|
5 | + * Date: 10.01.16 |
|
6 | + * Time: 12:49 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace AppBundle\Tests\Form\Type; |
10 | 10 |