Passed
Push — Showing-Posts ( bfc60e...38793a )
by Stone
01:59
created
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/Modules/Pagination.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             throw new \Exception("Pagination Error", "404");
27 27
         }
28 28
         $pageNo = $this->removeFromBeginning($page, "page-");
29
-        if(!filter_var($pageNo, FILTER_VALIDATE_INT)){
29
+        if (!filter_var($pageNo, FILTER_VALIDATE_INT)) {
30 30
             throw new \Exception("Invalid page number");
31 31
         }
32 32
         $offset = ($pageNo - 1) * $rowsPerPage;
Please login to merge, or discard this patch.