Passed
Push — master ( 62fe4a...1b8b5d )
by Jan
02:50
created
src/Controller/UserController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
     {
58 58
 
59 59
         //If no user id was passed, then we show info about the current user
60
-        if($user == null) {
60
+        if ($user == null) {
61 61
             $user = $this->getUser();
62 62
         }
63 63
 
64
-        if($this->getParameter("use_gravatar")) {
64
+        if ($this->getParameter("use_gravatar")) {
65 65
             $avatar = $this->getGravatar($user->getEmail(), 200, 'identicon');
66 66
         } else {
67 67
             $avatar = $packages->getUrl("/img/default_avatar.png");
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         $pw_form->handleRequest($request);
126 126
 
127 127
         //Check if password if everything was correct, then save it to User and DB
128
-        if($pw_form->isSubmitted() && $pw_form->isValid()) {
128
+        if ($pw_form->isSubmitted() && $pw_form->isValid()) {
129 129
             $password = $passwordEncoder->encodePassword($user, $pw_form['new_password']->getData());
130 130
             $user->setPassword($password);
131 131
             $em->persist($user);
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
         $url .= md5(strtolower(trim($email)));
163 163
         $url .= "?s=$s&d=$d&r=$r";
164 164
         if ($img) {
165
-            $url = '<img src="' . $url . '"';
165
+            $url = '<img src="'.$url.'"';
166 166
             foreach ($atts as $key => $val) {
167
-                $url .= ' ' . $key . '="' . $val . '"';
167
+                $url .= ' '.$key.'="'.$val.'"';
168 168
             }
169 169
             $url .= ' />';
170 170
         }
Please login to merge, or discard this patch.