Completed
Push — develop ( 82247e...95e034 )
by Victor
17:24 queued 10s
created
src/AppBundle/Tests/Controller/AdminControllerTest.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: victor
5
- * Date: 17.01.16
6
- * Time: 17:58
7
- */
3
+     * Created by PhpStorm.
4
+     * User: victor
5
+     * Date: 17.01.16
6
+     * Time: 17:58
7
+     */
8 8
 
9 9
 namespace AppBundle\Tests\Controller;
10 10
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 class AdminControllerTest extends WebTestCase
14 14
 {
15
-    public function testIndex(){
15
+    public function testIndex() {
16 16
         $client = static::createClient();
17 17
 
18 18
         $crawler = $client->request('GET', '/admin/');
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         $this->assertContains('Statistic', $crawler->filter('h2')->text());
22 22
     }
23 23
 
24
-    public function testArticles(){
24
+    public function testArticles() {
25 25
         $client = static::createClient();
26 26
 
27 27
         $crawler = $client->request('GET', '/admin/articles');
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $this->assertEquals(2, $crawler->filter('tr')->count());
32 32
     }
33 33
 
34
-    public function testComments(){
34
+    public function testComments() {
35 35
         $client = static::createClient();
36 36
 
37 37
         $crawler = $client->request('GET', '/admin/comments');
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $this->assertEquals(3, $crawler->filter('tr')->count());
42 42
     }
43 43
 
44
-    public function testUsers(){
44
+    public function testUsers() {
45 45
         $client = static::createClient();
46 46
 
47 47
         $crawler = $client->request('GET', '/admin/users');
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $this->assertEquals(2, $crawler->filter('tr')->count());
52 52
     }
53 53
 
54
-    public function testUsersDelete(){
54
+    public function testUsersDelete() {
55 55
         $client = static::createClient();
56 56
 
57 57
         $crawler = $client->request('GET', '/admin/user/delete/1');
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             $crawler->filter('.alert')->text());
62 62
     }
63 63
 
64
-    public function testRoles(){
64
+    public function testRoles() {
65 65
         $client = static::createClient();
66 66
 
67 67
         $crawler = $client->request('GET', '/admin/roles');
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $this->assertEquals(2, $crawler->filter('tr')->count());
72 72
     }
73 73
 
74
-    public function testRolesDelete(){
74
+    public function testRolesDelete() {
75 75
         $client = static::createClient();
76 76
 
77 77
         $crawler = $client->request('GET', '/admin/role/delete/1');
Please login to merge, or discard this patch.
src/AppBundle/Repository/ArticleRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
                 $query
91 91
                     ->where('a.createdAt >= ?1')
92 92
                     ->andWhere('a.createdAt <= ?2')
93
-                    ->setParameter(1, $param." 00:00:00")
94
-                    ->setParameter(2, $param." 23:59:59");
93
+                    ->setParameter(1, $param . " 00:00:00")
94
+                    ->setParameter(2, $param . " 23:59:59");
95 95
                 break;
96 96
             case 'search':
97 97
                 $query
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                             $query->expr()->lower('?1')
102 102
                         )
103 103
                     )
104
-                    ->setParameter(1, '%'.$param.'%');
104
+                    ->setParameter(1, '%' . $param . '%');
105 105
                 break;
106 106
         }
107 107
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/Blog/BlogController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
65 65
             $article = $em->getRepository('AppBundle:Article')
66 66
                 ->find($id);
67 67
             $title = 'Edit article id: '.$id;
68
-        }
69
-        else {
68
+        } else {
70 69
             $article = new Article();
71 70
             $title = 'Create new article';
72 71
         }
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/SearchType.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: victor
5
- * Date: 22.12.15
6
- * Time: 18:51
7
- */
3
+     * Created by PhpStorm.
4
+     * User: victor
5
+     * Date: 22.12.15
6
+     * Time: 18:51
7
+     */
8 8
 
9 9
 namespace AppBundle\Form\Type;
10 10
 
Please login to merge, or discard this patch.