Completed
Push — develop ( 6d3372...82247e )
by Victor
02:40
created
src/AppBundle/Controller/Admin/UserController.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         if ($action == "edit") {
112 112
             $user = $em->getRepository('AppBundle:User')
113 113
                 ->find($id);
114
-            $title = 'Edit user id: '.$id;
114
+            $title = 'Edit user id: ' . $id;
115 115
         }
116 116
         else {
117 117
             $user = new User();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
9 9
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
10 10
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
11
-use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
12 11
 use Symfony\Component\Form\Extension\Core\Type\SubmitType;
13 12
 use Symfony\Component\HttpFoundation\Request;
14 13
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,8 +66,7 @@  discard block
 block discarded – undo
66 66
             $user = $em->getRepository('AppBundle:User')
67 67
                 ->find($id);
68 68
             $title = 'Edit user id: '.$id;
69
-        }
70
-        else {
69
+        } else {
71 70
             $user = new User();
72 71
             $title = 'Create new user';
73 72
         }
@@ -147,8 +146,7 @@  discard block
 block discarded – undo
147 146
             }
148 147
 
149 148
             $renderedForm = $form->createView();
150
-        }
151
-        else {
149
+        } else {
152 150
             $message .= 'You must to delete related records before.';
153 151
             $renderedForm = '';
154 152
         }
Please login to merge, or discard this patch.
src/AppBundle/Controller/Admin/ArticleController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         if ($action == "edit") {
65 65
             $article = $em->getRepository('AppBundle:Article')
66 66
                 ->find($id);
67
-            $title = 'Edit article id: '.$id;
67
+            $title = 'Edit article id: ' . $id;
68 68
         }
69 69
         else {
70 70
             $article = new Article();
Please login to merge, or discard this 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/RoleType.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.