Passed
Push — Showing-Posts ( 71ba54...702ea9 )
by Stone
01:46
created
App/Controllers/Login.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     {
25 25
         $this->session->set('user_role_name', 'Admin');
26 26
         $this->session->set('user_role_level', 2);
27
-        $this->session->set('user_id',1);
27
+        $this->session->set('user_id', 1);
28 28
         $this->alertBox->setAlert('Connected as admin');
29 29
         $this->container->getResponse()->redirect('/admin/');
30 30
     }
Please login to merge, or discard this patch.
App/Controllers/Admin/Post.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         $postId = $postModel->newPost($title, $postImage, $idCategory, $article, $idUser, $published, $onFrontpage,
79 79
             $postSlug);
80 80
 
81
-        echo "<p>new post ID : " . $postId . "</p>";
81
+        echo "<p>new post ID : ".$postId."</p>";
82 82
 
83 83
         echo "<pre>";
84 84
         var_dump($posts);
Please login to merge, or discard this patch.
App/Models/SlugModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
     {
13 13
 
14 14
         if (!preg_match("/^[A-Za-z0-9_-]+$/", $table)) {
15
-            throw new \ErrorException("Invalid table name " . $table);
15
+            throw new \ErrorException("Invalid table name ".$table);
16 16
         }
17 17
 
18 18
         if (!preg_match("/^[A-Za-z0-9_-]+$/", $columnName)) {
19
-            throw new \ErrorException("Invalid Column name " . $columnName);
19
+            throw new \ErrorException("Invalid Column name ".$columnName);
20 20
         }
21 21
 
22 22
         $slugTbl = $this->getTablePrefix($table);
Please login to merge, or discard this patch.