@@ -22,5 +22,5 @@ |
||
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 |
@@ -29,7 +29,7 @@ |
||
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; |
@@ -26,7 +26,7 @@ |
||
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; |