Passed
Push — Showing-Posts ( a59326...b4fc92 )
by Stone
01:47
created
Core/Dependency/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
      * return the entire session superglobal. mainly for debugging purposes
92 92
      * @return mixed
93 93
      */
94
-    public function getAllSessionVars(){
94
+    public function getAllSessionVars() {
95 95
         return $_SESSION;
96 96
     }
97 97
 
Please login to merge, or discard this patch.
App/Controllers/Admin/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         }
37 37
         if ($success) {
38 38
             $this->alertBox->setAlert('Configuration updates successfully');
39
-        } else {
39
+        }else {
40 40
             $this->alertBox->setAlert('error in configuration update', 'error');
41 41
         }
42 42
         $this->container->getResponse()->redirect('admin/config');
Please login to merge, or discard this patch.
App/Controllers/Ajax/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             if (!$configModel->updateConfig($update->name, $update->value)) {
39 39
                 $result['success'] = false;
40 40
                 $result['errorId'][] = $update->name;
41
-            } else {
41
+            }else {
42 42
                 $result['successId'][] = $update->name;
43 43
             }
44 44
         }
Please login to merge, or discard this patch.
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/Models/SlugModel.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
     {
22 22
 
23 23
         if (!$this->isAlphaNum($table)) {
24
-            throw new \ErrorException("Invalid table name " . $table);
24
+            throw new \ErrorException("Invalid table name ".$table);
25 25
         }
26 26
 
27 27
         if (!$this->isAlphaNum($columnName)) {
28
-            throw new \ErrorException("Invalid Column name " . $columnName);
28
+            throw new \ErrorException("Invalid Column name ".$columnName);
29 29
         }
30 30
 
31 31
         $slugTbl = $this->getTablePrefix($table);
@@ -49,15 +49,15 @@  discard block
 block discarded – undo
49 49
     public function getIdFromSlug(string $slug, string $table, string $columnName, string $idColumn): int
50 50
     {
51 51
         if (!$this->isAlphaNum($table)) {
52
-            throw new \ErrorException("Invalid table name " . $table);
52
+            throw new \ErrorException("Invalid table name ".$table);
53 53
         }
54 54
 
55 55
         if (!$this->isAlphaNum($columnName)) {
56
-            throw new \ErrorException("Invalid Slug Column name " . $columnName);
56
+            throw new \ErrorException("Invalid Slug Column name ".$columnName);
57 57
         }
58 58
 
59 59
         if (!$this->isAlphaNum($idColumn)) {
60
-            throw new \ErrorException("Invalid ID Column name " . $columnName);
60
+            throw new \ErrorException("Invalid ID Column name ".$columnName);
61 61
         }
62 62
 
63 63
         $slugTbl = $this->getTablePrefix($table);
@@ -85,15 +85,15 @@  discard block
 block discarded – undo
85 85
     public function getSlugFromId(int $searchId, string $table, string $columnName, string $slugColumn): string
86 86
     {
87 87
         if (!$this->isAlphaNum($table)) {
88
-            throw new \ErrorException("Invalid table name " . $table);
88
+            throw new \ErrorException("Invalid table name ".$table);
89 89
         }
90 90
 
91 91
         if (!$this->isAlphaNum($columnName)) {
92
-            throw new \ErrorException("Invalid Slug Column name " . $columnName);
92
+            throw new \ErrorException("Invalid Slug Column name ".$columnName);
93 93
         }
94 94
 
95 95
         if (!$this->isAlphaNum($slugColumn)) {
96
-            throw new \ErrorException("Invalid ID Column name " . $columnName);
96
+            throw new \ErrorException("Invalid ID Column name ".$columnName);
97 97
         }
98 98
 
99 99
         $slugTbl = $this->getTablePrefix($table);
Please login to merge, or discard this patch.
Core/Constant.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,5 +22,5 @@
 block discarded – undo
22 22
     const FRONT_PAGE_POSTS = 3;
23 23
     const POSTS_PER_PAGE = 4;
24 24
 
25
-    const EXCERPT_WORD_COUNT =50;
25
+    const EXCERPT_WORD_COUNT = 50;
26 26
 }
27 27
\ No newline at end of file
Please login to merge, or discard this patch.
App/Models/CategoryModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $categories = $this->getCategories();
30 30
         foreach ($categories as $category) {
31 31
             $data += [
32
-                $category->category_name => '/category/posts/' . $category->categories_slug
32
+                $category->category_name => '/category/posts/'.$category->categories_slug
33 33
             ];
34 34
         }
35 35
         return $data;
Please login to merge, or discard this patch.
App/Controllers/Author.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 use Core\Controller;
8 8
 use Core\Container;
9 9
 
10
-class Author extends Controller{
10
+class Author extends Controller {
11 11
 
12 12
 
13 13
     protected $siteConfig;
Please login to merge, or discard this patch.
App/Controllers/Tag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 use Core\Controller;
7 7
 use Core\Container;
8 8
 
9
-class Tag extends Controller{
9
+class Tag extends Controller {
10 10
 
11 11
     protected $siteConfig;
12 12
     protected $pagination;
Please login to merge, or discard this patch.