Passed
Push — Comments ( c80f44...34b323 )
by Stone
02:16
created
App/Controllers/Post.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,9 +92,11 @@
 block discarded – undo
92 92
         $commentId = $this->commentModel->addComment($postId, $userId, $comment, $admin);
93 93
 
94 94
 
95
-        if (!$admin) //if we are not an admin, send an email to alert and add an alertBox
95
+        if (!$admin) {
96
+            //if we are not an admin, send an email to alert and add an alertBox
96 97
         {
97 98
             $siteConfig = $this->siteConfig->getSiteConfig();
99
+        }
98 100
             $post = $this->postModel->getSinglePost($postId);
99 101
 
100 102
             $emailMessage = "<h1>New comment on post " . $post->title . "</a></h1>";
Please login to merge, or discard this patch.
App/Controllers/Login.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -282,9 +282,11 @@
 block discarded – undo
282 282
         //all set, redirect and set message
283 283
         $redirectUrl = "";
284 284
         $refererUrl = $this->request->getReferer();
285
-        if ($refererUrl != "")//getReferer can return null if client isn't configured
285
+        if ($refererUrl != "") {
286
+            //getReferer can return null if client isn't configured
286 287
         {
287 288
             $baseUrl = $this->request->getBaseUrl();
289
+        }
288 290
             $redirectUrl = $this->removeFromBeginning($refererUrl, $baseUrl);
289 291
         }
290 292
 
Please login to merge, or discard this patch.