Passed
Push — Showing-Posts ( 91b09f...1f1a70 )
by Stone
03:15
created
App/Controllers/Admin/Post.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $postModel = new PostModel($this->container);
50 50
         $slugModel = new SlugModel($this->container);
51 51
 
52
-        $postId = $slugModel->getIdFromSlug($slug,"posts","posts_slug", "idposts");
52
+        $postId = $slugModel->getIdFromSlug($slug, "posts", "posts_slug", "idposts");
53 53
 
54 54
         $this->data['post'] = $postModel->getSinglePost($postId);
55 55
         $this->data['postTags'] = $tagModel->getTagsOnPost($postId);
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
                 $tagModel->addNewTagToPost($postId, $tag["name"]);
120 120
             }
121 121
         }
122
-        $this->alertBox->setAlert("Post " . $title . " Created");
123
-        $this->container->getResponse()->redirect("admin/post/modify/" . $postSlug);
122
+        $this->alertBox->setAlert("Post ".$title." Created");
123
+        $this->container->getResponse()->redirect("admin/post/modify/".$postSlug);
124 124
     }
125 125
 
126 126
     /**
Please login to merge, or discard this patch.