Completed
Push — master ( 72ee7f...4775c0 )
by Jacob
03:43
created
src/Domain/Blog/Post/PostRepositoryInterface.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 interface PostRepository
6 6
 {
7 7
     public function findPostByPath($category, $path);
8
-    public function getActivePosts($limit = null, $offset= 0);
8
+    public function getActivePosts($limit = null, $offset = 0);
9 9
     public function getActivePostsCount();
10 10
     public function getActivePostsByTag($tag, $limit = null, $offset = 0);
11 11
     public function getActivePostsCountByTag($tag);
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Jacobemerick\Web\Domain\Blog\Post;
4 4
 
5
-interface PostRepositoryInterface
6
-{
5
+interface PostRepositoryInterface
6
+{
7 7
     public function findPostByPath($path);
8 8
     public function getActivePosts($limit = null, $offset= 0);
9 9
     public function getActivePostsCount();
Please login to merge, or discard this patch.
router/BlogRouter.class.inc.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
 
46 46
 	protected function check_for_special_redirect($uri)
47 47
 	{
48
-		if(preg_match('@^/post_([0-9]{4}-[0-9]{2}-[0-9]{2})_([a-z0-9-]+)(/?)$@', $uri, $matches))
48
+		if (preg_match('@^/post_([0-9]{4}-[0-9]{2}-[0-9]{2})_([a-z0-9-]+)(/?)$@', $uri, $matches))
49 49
 		{
50 50
 			Loader::load('collector', 'blog/PostCollector');
51 51
 			$post = PostCollector::getPostByURI($matches[2]);
52
-			if(!$post)
52
+			if (!$post)
53 53
 			{
54 54
 				Loader::loadNew('controller', '/Error404Controller')
55 55
 					->activate();
@@ -61,21 +61,21 @@  discard block
 block discarded – undo
61 61
 		else
62 62
 		{
63 63
 			$post_uri = URLDecode::getPiece(1);
64
-			if($post_uri !== null)
64
+			if ($post_uri !== null)
65 65
 			{
66 66
 				Loader::load('collector', 'blog/PostCollector');
67 67
 				$post = PostCollector::getPostByURI($post_uri);
68 68
 				
69
-				if($post != false)
69
+				if ($post != false)
70 70
 				{
71 71
 					Loader::load('utility', 'Content');
72 72
 					$uri = Content::instance('URLSafe', "/{$post->category}/{$post->title_url}/")->activate();
73 73
 				}
74 74
 			}
75 75
 		}
76
-		if($uri == '/search/')
76
+		if ($uri == '/search/')
77 77
 		{
78
-			if(Request::getGet('submit') == 'Submit Search' && Request::getGet('search'))
78
+			if (Request::getGet('submit') == 'Submit Search' && Request::getGet('search'))
79 79
 			{
80 80
 				$uri .= Request::getGet('search');
81 81
 				$uri .= '/';
Please login to merge, or discard this patch.
Braces   +6 added lines, -10 removed lines patch added patch discarded remove patch
@@ -2,11 +2,10 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('router', 'Router');
4 4
 
5
-class BlogRouter extends Router
6
-{
5
+class BlogRouter extends Router
6
+{
7 7
 
8
-	protected function get_redirect_array()
9
-	{
8
+	protected function get_redirect_array() {
10 9
 		return array(
11 10
 			(object) array(
12 11
 				'pattern' => '@^/page_([0-9]+)/$@',
@@ -43,8 +42,7 @@  discard block
 block discarded – undo
43 42
 				'replace' => '/$1'));
44 43
 	}
45 44
 
46
-	protected function check_for_special_redirect($uri)
47
-	{
45
+	protected function check_for_special_redirect($uri) {
48 46
 		if(preg_match('@^/post_([0-9]{4}-[0-9]{2}-[0-9]{2})_([a-z0-9-]+)(/?)$@', $uri, $matches))
49 47
 		{
50 48
         global $container;
@@ -59,8 +57,7 @@  discard block
 block discarded – undo
59 57
 			
60 58
 			Loader::load('utility', 'Content');
61 59
 			$uri = Content::instance('URLSafe', "/{$post['category']}/{$post['path']}/")->activate();
62
-		}
63
-		else
60
+		} else
64 61
 		{
65 62
 			$post_uri = URLDecode::getPiece(1);
66 63
 			if($post_uri !== null)
@@ -87,8 +84,7 @@  discard block
 block discarded – undo
87 84
 		return $uri;
88 85
 	}
89 86
 
90
-	protected function get_direct_array()
91
-	{
87
+	protected function get_direct_array() {
92 88
 		return array(
93 89
 			(object) array(
94 90
 				'match' => '/',
Please login to merge, or discard this patch.
collector/comment/CommentCollector.class.inc.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
 	{
164 164
 		$path = self::escape($path);
165 165
 		
166
-		if($commenter != 0)
166
+		if ($commenter != 0)
167 167
 			$trusted_commenter_clause = "(`commenter`.`trusted` = '1' || `commenter`.`id` = '{$commenter}')";
168 168
 		else
169 169
 			$trusted_commenter_clause = "`commenter`.`trusted` = '1'";
Please login to merge, or discard this patch.
Braces   +15 added lines, -22 removed lines patch added patch discarded remove patch
@@ -2,11 +2,10 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('collector', 'Collector');
4 4
 
5
-final class CommentCollector extends Collector
6
-{
5
+final class CommentCollector extends Collector
6
+{
7 7
 
8
-	public static function getCommenterByFields($name, $email, $website)
9
-	{
8
+	public static function getCommenterByFields($name, $email, $website) {
10 9
 		$name = self::escape($name);
11 10
 		$email = self::escape($email);
12 11
 		$website = self::escape($website);
@@ -25,8 +24,7 @@  discard block
 block discarded – undo
25 24
 		return self::run_row_query($query);
26 25
 	}
27 26
 
28
-	public static function getCommentByBody($body)
29
-	{
27
+	public static function getCommentByBody($body) {
30 28
 		$body = self::escape($body);
31 29
 		
32 30
 		$query = "
@@ -41,8 +39,7 @@  discard block
 block discarded – undo
41 39
 		return self::run_row_query($query);
42 40
 	}
43 41
 
44
-	public static function getCommentPageByURL($path, $site)
45
-	{
42
+	public static function getCommentPageByURL($path, $site) {
46 43
 		$path = self::escape($path);
47 44
 		
48 45
 		$query = "
@@ -59,8 +56,7 @@  discard block
 block discarded – undo
59 56
 		return self::run_row_query($query);
60 57
 	}
61 58
 
62
-	public static function getNotificationForPage($comment_page)
63
-	{
59
+	public static function getNotificationForPage($comment_page) {
64 60
 		$query = "
65 61
 			SELECT
66 62
 				`name`,
@@ -83,8 +79,7 @@  discard block
 block discarded – undo
83 79
 		return self::run_query($query);
84 80
 	}
85 81
 
86
-	public static function getRecentBlogComments($count)
87
-	{
82
+	public static function getRecentBlogComments($count) {
88 83
 		$query = "
89 84
 			SELECT
90 85
 				`comment_meta`.`id`,
@@ -114,8 +109,7 @@  discard block
 block discarded – undo
114 109
 		return self::run_query($query);
115 110
 	}
116 111
 
117
-    public static function getRecentWaterfallComments($count = 5)
118
-    {
112
+    public static function getRecentWaterfallComments($count = 5) {
119 113
         $query = "
120 114
             SELECT
121 115
                 `comment_meta`.`id`,
@@ -159,14 +153,14 @@  discard block
 block discarded – undo
159 153
         return self::run_query($query);
160 154
     }
161 155
 
162
-	public static function getCommentsForURL($site, $path, $commenter = 0)
163
-	{
156
+	public static function getCommentsForURL($site, $path, $commenter = 0) {
164 157
 		$path = self::escape($path);
165 158
 		
166
-		if($commenter != 0)
167
-			$trusted_commenter_clause = "(`commenter`.`trusted` = '1' || `commenter`.`id` = '{$commenter}')";
168
-		else
169
-			$trusted_commenter_clause = "`commenter`.`trusted` = '1'";
159
+		if($commenter != 0) {
160
+					$trusted_commenter_clause = "(`commenter`.`trusted` = '1' || `commenter`.`id` = '{$commenter}')";
161
+		} else {
162
+					$trusted_commenter_clause = "`commenter`.`trusted` = '1'";
163
+		}
170 164
 		
171 165
 		$query = "
172 166
 			SELECT
@@ -197,8 +191,7 @@  discard block
 block discarded – undo
197 191
 		return self::run_query($query);
198 192
 	}
199 193
 
200
-	public static function getCommentCountForURL($site, $path)
201
-	{
194
+	public static function getCommentCountForURL($site, $path) {
202 195
 		$path = self::escape($path);
203 196
 		
204 197
 		$query = "
Please login to merge, or discard this patch.
controller/AJAXController.class.inc.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
 	protected function set_response($message, $type = 'internal')
30 30
 	{
31
-		switch($type)
31
+		switch ($type)
32 32
 		{
33 33
 			case 'internal' :
34 34
 				$this->response['internal'] = $message;
Please login to merge, or discard this patch.
Braces   +7 added lines, -12 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
 	'Header',
5 5
 	'Request'));
6 6
 
7
-abstract class AJAXController
8
-{
7
+abstract class AJAXController
8
+{
9 9
 
10 10
 	private static $RESPONSE_HEADER = 'sendJSON';
11 11
 
@@ -15,16 +15,14 @@  discard block
 block discarded – undo
15 15
 
16 16
 	function __construct() {}
17 17
 
18
-	public function activate()
19
-	{
18
+	public function activate() {
20 19
 		call_user_func(array('Header', self::$RESPONSE_HEADER));
21 20
 		
22 21
 		$this->set_data();
23 22
 		echo $this->response_as_json();
24 23
 	}
25 24
 
26
-	protected function set_response($message, $type = 'internal')
27
-	{
25
+	protected function set_response($message, $type = 'internal') {
28 26
 		switch($type)
29 27
 		{
30 28
 			case 'internal' :
@@ -38,21 +36,18 @@  discard block
 block discarded – undo
38 36
 		}
39 37
 	}
40 38
 
41
-	protected function fail_response($message)
42
-	{
39
+	protected function fail_response($message) {
43 40
 		$this->set_response($message, 'error');
44 41
 		return false;
45 42
 	}
46 43
 
47
-	protected function eject($message)
48
-	{
44
+	protected function eject($message) {
49 45
 		$this->fail_response($message);
50 46
 		echo $this->response_as_json();
51 47
 		exit();
52 48
 	}
53 49
 
54
-	private function response_as_json()
55
-	{
50
+	private function response_as_json() {
56 51
 		return json_encode($this->response);
57 52
 	}
58 53
 
Please login to merge, or discard this patch.
controller/waterfalls/DefaultLogListController.class.inc.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 		$companion_result = CompanionCollector::getCompanionList();
43 43
 		$companion_list = array();
44 44
 		
45
-		foreach($companion_result as $companion_row)
45
+		foreach ($companion_result as $companion_row)
46 46
 		{
47 47
 			$companion = new stdclass();
48 48
 			$companion->name = $companion_row->name;
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 		$period_result = PeriodCollector::getPeriodList();
56 56
 		$period_list = array();
57 57
 		
58
-		foreach($period_result as $period_row)
58
+		foreach ($period_result as $period_row)
59 59
 		{
60 60
 			$period = new stdclass();
61 61
 			$period->name = $period_row->name;
Please login to merge, or discard this patch.
Braces   +6 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,23 +7,20 @@  discard block
 block discarded – undo
7 7
 	'waterfall/PeriodCollector'));
8 8
 Loader::load('controller', 'waterfalls/DefaultListController');
9 9
 
10
-abstract class DefaultLogListController extends DefaultListController
11
-{
10
+abstract class DefaultLogListController extends DefaultListController
11
+{
12 12
 
13 13
 	private static $ITEM_COUNT_PER_PAGE = 10;
14 14
 
15
-	final protected function get_list_view()
16
-	{
15
+	final protected function get_list_view() {
17 16
 		return 'LogListing';
18 17
 	}
19 18
 
20
-	final protected function get_item_count_per_page()
21
-	{
19
+	final protected function get_item_count_per_page() {
22 20
 		return self::$ITEM_COUNT_PER_PAGE;
23 21
 	}
24 22
 
25
-	final protected function format_item($item)
26
-	{
23
+	final protected function format_item($item) {
27 24
 		$item_array = array();
28 25
 		
29 26
 		$item_array['title'] = $item->title;
@@ -37,8 +34,7 @@  discard block
 block discarded – undo
37 34
 		return $item_array;
38 35
 	}
39 36
 
40
-	final protected function get_sidebar()
41
-	{
37
+	final protected function get_sidebar() {
42 38
 		$companion_result = CompanionCollector::getCompanionList();
43 39
 		$companion_list = array();
44 40
 		
Please login to merge, or discard this patch.
controller/waterfalls/SearchListController.class.inc.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 	protected function get_page_number()
28 28
 	{
29 29
 		$page = URLDecode::getPiece(2);
30
-		if(isset($page) && is_numeric($page))
30
+		if (isset($page) && is_numeric($page))
31 31
 			return $page;
32 32
 		return 1;
33 33
 	}
Please login to merge, or discard this patch.
Braces   +14 added lines, -22 removed lines patch added patch discarded remove patch
@@ -2,16 +2,15 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', 'waterfalls/DefaultListController');
4 4
 
5
-final class SearchListController extends DefaultListController
6
-{
5
+final class SearchListController extends DefaultListController
6
+{
7 7
 
8 8
 	private static $TITLE = 'Search Listing';
9 9
 	private static $DESCRIPTION = '';
10 10
 
11 11
 	private static $KEYWORD_ARRAY = array();
12 12
 
13
-	protected function set_head_data()
14
-	{
13
+	protected function set_head_data() {
15 14
 		parent::set_head_data();
16 15
 		
17 16
 		$this->set_title(self::$TITLE);
@@ -19,47 +18,40 @@  discard block
 block discarded – undo
19 18
 		$this->set_keywords(self::$KEYWORD_ARRAY);
20 19
 	}
21 20
 
22
-	protected function get_introduction()
23
-	{
21
+	protected function get_introduction() {
24 22
 		return;
25 23
 	}
26 24
 
27
-	protected function get_page_number()
28
-	{
25
+	protected function get_page_number() {
29 26
 		$page = URLDecode::getPiece(2);
30
-		if(isset($page) && is_numeric($page))
31
-			return $page;
27
+		if(isset($page) && is_numeric($page)) {
28
+					return $page;
29
+		}
32 30
 		return 1;
33 31
 	}
34 32
 
35
-	protected function get_items()
36
-	{
33
+	protected function get_items() {
37 34
 		return array();
38 35
 	}
39 36
 
40
-	protected function get_list_description()
41
-	{
37
+	protected function get_list_description() {
42 38
 		return 'yay cloud';
43 39
 	}
44 40
 
45
-	protected function get_list_next_link()
46
-	{
41
+	protected function get_list_next_link() {
47 42
 		return '/';
48 43
 	}
49 44
 
50
-	protected function get_list_prev_link()
51
-	{
45
+	protected function get_list_prev_link() {
52 46
 		return '/';
53 47
 	}
54 48
 
55 49
 	private $total_post_count;
56
-	protected function get_item_count()
57
-	{
50
+	protected function get_item_count() {
58 51
 		return 20;
59 52
 	}
60 53
 
61
-	protected function get_item_count_per_page()
62
-	{
54
+	protected function get_item_count_per_page() {
63 55
 		return 20;
64 56
 	}
65 57
 
Please login to merge, or discard this patch.
controller/waterfalls/DefaultWaterfallListController.class.inc.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 		$county_result = CountyCollector::getCountyList();
42 42
 		$county_list = array();
43 43
 		
44
-		foreach($county_result as $county_row)
44
+		foreach ($county_result as $county_row)
45 45
 		{
46 46
 			$county = new stdclass();
47 47
 			$county->name = $county_row->name;
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		$watercourse_result = WatercourseCollector::getWatercourseList();
55 55
 		$watercourse_list = array();
56 56
 		
57
-		foreach($watercourse_result as $watercourse_row)
57
+		foreach ($watercourse_result as $watercourse_row)
58 58
 		{
59 59
 			$watercourse = new stdclass();
60 60
 			$watercourse->name = $watercourse_row->name;
Please login to merge, or discard this patch.
Braces   +6 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,23 +7,20 @@  discard block
 block discarded – undo
7 7
 	'waterfall/WaterfallCollector'));
8 8
 Loader::load('controller', 'waterfalls/DefaultListController');
9 9
 
10
-abstract class DefaultWaterfallListController extends DefaultListController
11
-{
10
+abstract class DefaultWaterfallListController extends DefaultListController
11
+{
12 12
 
13 13
 	protected static $ITEM_COUNT_PER_PAGE = 24;
14 14
 
15
-	final protected function get_list_view()
16
-	{
15
+	final protected function get_list_view() {
17 16
 		return 'FallListing';
18 17
 	}
19 18
 
20
-	protected function get_item_count_per_page()
21
-	{
19
+	protected function get_item_count_per_page() {
22 20
 		return self::$ITEM_COUNT_PER_PAGE;
23 21
 	}
24 22
 
25
-	final protected function format_item($item)
26
-	{
23
+	final protected function format_item($item) {
27 24
 		$item_array = array();
28 25
 		
29 26
 		$item_array['name'] = $item->name;
@@ -36,8 +33,7 @@  discard block
 block discarded – undo
36 33
 		return $item_array;
37 34
 	}
38 35
 
39
-	final protected function get_sidebar()
40
-	{
36
+	final protected function get_sidebar() {
41 37
 		$county_result = CountyCollector::getCountyList();
42 38
 		$county_list = array();
43 39
 		
Please login to merge, or discard this patch.
controller/blog/AboutController.class.inc.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 		Loader::load('collector', 'blog/IntroductionCollector');
37 37
 		$introduction_result = IntroductionCollector::getRow('about');
38 38
 		
39
-		if($introduction_result !== null)
39
+		if ($introduction_result !== null)
40 40
 		{
41 41
 			$introduction = array();
42 42
 			$introduction['title'] = $introduction_result->title;
Please login to merge, or discard this patch.
Braces   +5 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', 'blog/DefaultPageController');
4 4
 
5
-final class AboutController extends DefaultPageController
6
-{
5
+final class AboutController extends DefaultPageController
6
+{
7 7
 
8 8
 	private static $TITLE = 'About the Blog | Jacob Emerick';
9 9
 	private static $DESCRIPTION = "A little bit about the awesomeness on Jacob Emerick's Blog, diving into the topics covered, technology used, and methodology of writing new posts.";
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
 		'blog',
16 16
 		'Jacob Emerick');
17 17
 
18
-	protected function set_head_data()
19
-	{
18
+	protected function set_head_data() {
20 19
 		$this->set_title(self::$TITLE);
21 20
 		$this->set_description(self::$DESCRIPTION);
22 21
 		$this->set_keywords(self::$KEYWORD_ARRAY);
@@ -24,15 +23,13 @@  discard block
 block discarded – undo
24 23
 		parent::set_head_data();
25 24
 	}
26 25
 
27
-	protected function set_body_data()
28
-	{
26
+	protected function set_body_data() {
29 27
 		$this->set_body('view', 'About');
30 28
 		
31 29
 		parent::set_body_data();
32 30
 	}
33 31
 
34
-	protected function get_introduction()
35
-	{
32
+	protected function get_introduction() {
36 33
         global $container;
37 34
         $repository = new Jacobemerick\Web\Domain\Blog\Introduction\MysqlIntroductionRepository($container['db_connection_locator']);
38 35
         $introduction_result = $repository->findByType('about');
Please login to merge, or discard this patch.
controller/blog/DefaultListController.class.inc.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,11 +56,11 @@
 block discarded – undo
56 56
 	final private function get_list_posts()
57 57
 	{
58 58
 		$post_array = array();
59
-		foreach($this->get_list_results() as $post)
59
+		foreach ($this->get_list_results() as $post)
60 60
 		{
61 61
 			$post_array[] = $this->format_post($post, true);
62 62
 		}
63
-		if(count($post_array) < 1 && URLDecode::getPiece(1) !== 'search')
63
+		if (count($post_array) < 1 && URLDecode::getPiece(1) !== 'search')
64 64
 			$this->eject();
65 65
 		return $post_array;
66 66
 	}
Please login to merge, or discard this patch.
Braces   +10 added lines, -14 removed lines patch added patch discarded remove patch
@@ -2,16 +2,15 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', 'lifestream/DefaultPageController');
4 4
 
5
-abstract class DefaultListController extends DefaultPageController
6
-{
5
+abstract class DefaultListController extends DefaultPageController
6
+{
7 7
 
8 8
 	protected static $POSTS_PER_PAGE = 15;
9 9
 
10 10
 	protected $page;
11 11
 	protected $offset;
12 12
 
13
-	public function __construct()
14
-	{
13
+	public function __construct() {
15 14
 		parent::__construct();
16 15
 
17 16
 		$this->page = $this->get_page_number();
@@ -25,24 +24,21 @@  discard block
 block discarded – undo
25 24
 	abstract protected function get_list_prev_link();
26 25
 	abstract protected function get_total_post_count();
27 26
 
28
-	protected function set_head_data()
29
-	{
27
+	protected function set_head_data() {
30 28
 		parent::set_head_data();
31 29
 		
32 30
 		$this->set_head('next_link', $this->get_list_next_link());
33 31
 		$this->set_head('previous_link', $this->get_list_prev_link());
34 32
 	}
35 33
 
36
-	protected function set_body_data()
37
-	{
34
+	protected function set_body_data() {
38 35
 		parent::set_body_data();
39 36
 		
40 37
 		$this->set_body('view', 'Listing');
41 38
 		$this->set_body('data', $this->get_list_body_data());
42 39
 	}
43 40
 
44
-	final private function get_list_body_data()
45
-	{
41
+	final private function get_list_body_data() {
46 42
 		return array(
47 43
 			'posts' => $this->get_list_posts(),
48 44
 			'type' => 'list',
@@ -52,15 +48,15 @@  discard block
 block discarded – undo
52 48
 				'prev' => $this->get_list_prev_link()));
53 49
 	}
54 50
 
55
-	final private function get_list_posts()
56
-	{
51
+	final private function get_list_posts() {
57 52
 		$post_array = array();
58 53
 		foreach($this->get_list_results() as $post)
59 54
 		{
60 55
 			$post_array[] = $this->expand_post($post, 'full');
61 56
 		}
62
-		if(count($post_array) < 1 && URLDecode::getPiece(1) !== 'search')
63
-			$this->eject();
57
+		if(count($post_array) < 1 && URLDecode::getPiece(1) !== 'search') {
58
+					$this->eject();
59
+		}
64 60
 		return $post_array;
65 61
 	}
66 62
 
Please login to merge, or discard this patch.