Completed
Push — master ( 68e9dc...5e9262 )
by Jacob
03:50
created
controller/waterfalls/DefaultWaterfallListController.class.inc.php 1 patch
Braces   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,23 +7,23 @@  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()
16
+	{
17 17
 		return 'FallListing';
18 18
 	}
19 19
 
20
-	protected function get_item_count_per_page()
21
-	{
20
+	protected function get_item_count_per_page()
21
+	{
22 22
 		return self::$ITEM_COUNT_PER_PAGE;
23 23
 	}
24 24
 
25
-	final protected function format_item($item)
26
-	{
25
+	final protected function format_item($item)
26
+	{
27 27
 		$item_array = array();
28 28
 		
29 29
 		$item_array['name'] = $item->name;
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
 		return $item_array;
37 37
 	}
38 38
 
39
-	final protected function get_sidebar()
40
-	{
39
+	final protected function get_sidebar()
40
+	{
41 41
 		$county_result = CountyCollector::getCountyList();
42 42
 		$county_list = array();
43 43
 		
Please login to merge, or discard this patch.
controller/waterfalls/LogListController.class.inc.php 1 patch
Braces   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
 	'waterfall/LogCollector'));
6 6
 Loader::load('controller', 'waterfalls/DefaultLogListController');
7 7
 
8
-final class LogListController extends DefaultLogListController
9
-{
8
+final class LogListController extends DefaultLogListController
9
+{
10 10
 
11 11
 	private static $PRIMARY_TITLE = 'Journal from Waterfall Hikes';
12 12
 	private static $PRIMARY_DESCRIPTION = 'Stories written by Jacob Emerick about his epic waterfall adventures in the general Keweenaw, Ontonagon, and Marquette areas.';
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
 	private static $NAVIGATION_DESCRIPTION = 'displaying %d ~ %d of %d total journal entries';
29 29
 	private static $LINK_ROOT = '/journal/';
30 30
 
31
-	protected function get_initial_meta()
32
-	{
31
+	protected function get_initial_meta()
32
+	{
33 33
 		$meta_array = array();
34 34
 		
35 35
 		$meta_array['title'] = self::$PRIMARY_TITLE . ' | ' . self::$WEBSITE_TITLE;
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 		return $meta_array;
40 40
 	}
41 41
 
42
-	protected function get_subsequent_meta()
43
-	{
42
+	protected function get_subsequent_meta()
43
+	{
44 44
 		$meta_array = array();
45 45
 		
46 46
 		$meta_array['title'] = sprintf(self::$SECONDARY_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->page);
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
 		return $meta_array;
51 51
 	}
52 52
 
53
-	protected function get_initial_introduction()
54
-	{
53
+	protected function get_initial_introduction()
54
+	{
55 55
 		$introduction = array();
56 56
 		
57 57
 		$introduction['title'] = self::$PRIMARY_INTRODUCTION_HEADER;
@@ -63,34 +63,34 @@  discard block
 block discarded – undo
63 63
 		return $introduction;
64 64
 	}
65 65
 
66
-	protected function get_subsequent_introduction()
67
-	{
66
+	protected function get_subsequent_introduction()
67
+	{
68 68
 		return array(
69 69
 			'title' => sprintf(self::$SECONDARY_INTRODUCTION_HEADER, $this->page, $this->page_count));
70 70
 	}
71 71
 
72
-	protected function get_page_number_piece()
73
-	{
72
+	protected function get_page_number_piece()
73
+	{
74 74
 		return URLDecode::getPiece(2);
75 75
 	}
76 76
 
77
-	protected function get_item_result($total, $offset)
78
-	{
77
+	protected function get_item_result($total, $offset)
78
+	{
79 79
 		return LogCollector::getList($total, $offset);
80 80
 	}
81 81
 
82
-	protected function get_item_count_result()
83
-	{
82
+	protected function get_item_count_result()
83
+	{
84 84
 		return LogCollector::getListCount();
85 85
 	}
86 86
 
87
-	protected function get_list_description_pattern()
88
-	{
87
+	protected function get_list_description_pattern()
88
+	{
89 89
 		return self::$NAVIGATION_DESCRIPTION;
90 90
 	}
91 91
 
92
-	protected function get_list_link_root()
93
-	{
92
+	protected function get_list_link_root()
93
+	{
94 94
 		return self::$LINK_ROOT;
95 95
 	}
96 96
 
Please login to merge, or discard this patch.
controller/waterfalls/WatercourseListController.class.inc.php 1 patch
Braces   +29 added lines, -28 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@  discard block
 block discarded – undo
3 3
 Loader::load('collector', 'waterfall/WaterfallCollector');
4 4
 Loader::load('controller', 'waterfalls/DefaultWaterfallListController');
5 5
 
6
-final class WatercourseListController extends DefaultWaterfallListController
7
-{
6
+final class WatercourseListController extends DefaultWaterfallListController
7
+{
8 8
 
9 9
 	private static $DEFAULT_TITLE = 'Hiking with %s, Page %d of %d';
10 10
 	private static $DEFAULT_DESCRIPTION = 'Page %d of %d of legendary hiking stories with %s written by Jacob Emerick, all about his adventures hunting waterfalls in the Upper Peninsula of Michigan';
@@ -24,19 +24,20 @@  discard block
 block discarded – undo
24 24
 
25 25
 	private $watercourse;
26 26
 
27
-	public function __construct()
28
-	{
27
+	public function __construct()
28
+	{
29 29
 		$path = URLDecode::getPiece(1);
30 30
 		$this->watercourse = WatercourseCollector::getByAlias($path);
31 31
 		
32
-		if(!$this->watercourse)
33
-			$this->eject();
32
+		if(!$this->watercourse) {
33
+					$this->eject();
34
+		}
34 35
 	
35 36
 		parent::__construct();
36 37
 	}
37 38
 
38
-	protected function get_initial_meta()
39
-	{
39
+	protected function get_initial_meta()
40
+	{
40 41
 		$meta_array = array();
41 42
 		
42 43
 		$meta_array['title'] = "{$this->watercourse->name} | " . self::$WEBSITE_TITLE;
@@ -46,8 +47,8 @@  discard block
 block discarded – undo
46 47
 		return $meta_array;
47 48
 	}
48 49
 
49
-	protected function get_subsequent_meta()
50
-	{
50
+	protected function get_subsequent_meta()
51
+	{
51 52
 		$meta_array = array();
52 53
 		
53 54
 		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->watercourse->name, $this->page, $this->page_count);
@@ -57,15 +58,15 @@  discard block
 block discarded – undo
57 58
 		return $meta_array;
58 59
 	}
59 60
 
60
-	private function get_keyword_array()
61
-	{
61
+	private function get_keyword_array()
62
+	{
62 63
 		$keyword_array = self::$KEYWORD_ARRAY;
63 64
 		array_unshift($keyword_array, strtolower($this->watercourse->name));
64 65
 		return $keyword_array;
65 66
 	}
66 67
 
67
-	protected function get_initial_introduction()
68
-	{
68
+	protected function get_initial_introduction()
69
+	{
69 70
 		$introduction = array();
70 71
 		
71 72
 		$introduction['title'] = $this->watercourse->header;
@@ -75,39 +76,39 @@  discard block
 block discarded – undo
75 76
 		return $introduction;
76 77
 	}
77 78
 
78
-	protected function get_subsequent_introduction()
79
-	{
79
+	protected function get_subsequent_introduction()
80
+	{
80 81
 		return array(
81 82
 			'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->watercourse->name));
82 83
 	}
83 84
 
84
-	protected function get_item_count_per_page()
85
-	{
85
+	protected function get_item_count_per_page()
86
+	{
86 87
 		return self::$ITEM_COUNT_PER_PAGE;
87 88
 	}
88 89
 
89
-	protected function get_page_number_piece()
90
-	{
90
+	protected function get_page_number_piece()
91
+	{
91 92
 		return URLDecode::getPiece(2);
92 93
 	}
93 94
 
94
-	protected function get_item_result($total, $offset)
95
-	{
95
+	protected function get_item_result($total, $offset)
96
+	{
96 97
 		return WatercourseCollector::getLogListForWatercourse($this->watercourse->id, $total, $offset);
97 98
 	}
98 99
 
99
-	protected function get_item_count_result()
100
-	{
100
+	protected function get_item_count_result()
101
+	{
101 102
 		return WatercourseCollector::getLogCountForWatercourse($this->watercourse->id);
102 103
 	}
103 104
 
104
-	protected function get_list_description_pattern()
105
-	{
105
+	protected function get_list_description_pattern()
106
+	{
106 107
 		return str_replace('%COUNTY%', $this->watercourse->name, self::$NAVIGATION_DESCRIPTION);
107 108
 	}
108 109
 
109
-	protected function get_list_link_root()
110
-	{
110
+	protected function get_list_link_root()
111
+	{
111 112
 		return sprintf(self::$LINK_ROOT, $this->watercourse->alias);
112 113
 	}
113 114
 
Please login to merge, or discard this patch.
controller/waterfalls/DefaultLogListController.class.inc.php 1 patch
Braces   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,23 +7,23 @@  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()
16
+	{
17 17
 		return 'LogListing';
18 18
 	}
19 19
 
20
-	final protected function get_item_count_per_page()
21
-	{
20
+	final protected function get_item_count_per_page()
21
+	{
22 22
 		return self::$ITEM_COUNT_PER_PAGE;
23 23
 	}
24 24
 
25
-	final protected function format_item($item)
26
-	{
25
+	final protected function format_item($item)
26
+	{
27 27
 		$item_array = array();
28 28
 		
29 29
 		$item_array['title'] = $item->title;
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 		return $item_array;
38 38
 	}
39 39
 
40
-	final protected function get_sidebar()
41
-	{
40
+	final protected function get_sidebar()
41
+	{
42 42
 		$companion_result = CompanionCollector::getCompanionList();
43 43
 		$companion_list = array();
44 44
 		
Please login to merge, or discard this patch.
controller/waterfalls/WaterfallListController.class.inc.php 1 patch
Braces   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
 	'waterfall/WaterfallCollector'));
6 6
 Loader::load('controller', 'waterfalls/DefaultWaterfallListController');
7 7
 
8
-final class WaterfallListController extends DefaultWaterfallListController
9
-{
8
+final class WaterfallListController extends DefaultWaterfallListController
9
+{
10 10
 
11 11
 	private static $PRIMARY_TITLE = 'Full Listing of Falls';
12 12
 	private static $PRIMARY_DESCRIPTION = 'List of waterfalls found in the general Keweenaw Area, complete with photos, descriptions, directions, and maps.';
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
 	private static $NAVIGATION_DESCRIPTION = 'displaying %d ~ %d of %d total waterfalls';
29 29
 	private static $LINK_ROOT = '/falls/';
30 30
 
31
-	protected function get_initial_meta()
32
-	{
31
+	protected function get_initial_meta()
32
+	{
33 33
 		$meta_array = array();
34 34
 		
35 35
 		$meta_array['title'] = self::$PRIMARY_TITLE . ' | ' . self::$WEBSITE_TITLE;
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 		return $meta_array;
40 40
 	}
41 41
 
42
-	protected function get_subsequent_meta()
43
-	{
42
+	protected function get_subsequent_meta()
43
+	{
44 44
 		$meta_array = array();
45 45
 		
46 46
 		$meta_array['title'] = sprintf(self::$SECONDARY_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->page, $this->page_count);
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
 		return $meta_array;
51 51
 	}
52 52
 
53
-	protected function get_initial_introduction()
54
-	{
53
+	protected function get_initial_introduction()
54
+	{
55 55
 		$introduction = array();
56 56
 		
57 57
 		$introduction['title'] = self::$PRIMARY_INTRODUCTION_HEADER;
@@ -63,34 +63,34 @@  discard block
 block discarded – undo
63 63
 		return $introduction;
64 64
 	}
65 65
 
66
-	protected function get_subsequent_introduction()
67
-	{
66
+	protected function get_subsequent_introduction()
67
+	{
68 68
 		return array(
69 69
 			'title' => sprintf(self::$SECONDARY_INTRODUCTION_HEADER, $this->page, $this->page_count));
70 70
 	}
71 71
 
72
-	protected function get_page_number_piece()
73
-	{
72
+	protected function get_page_number_piece()
73
+	{
74 74
 		return URLDecode::getPiece(2);
75 75
 	}
76 76
 
77
-	protected function get_item_result($total, $offset)
78
-	{
77
+	protected function get_item_result($total, $offset)
78
+	{
79 79
 		return WaterfallCollector::getList($total, $offset);
80 80
 	}
81 81
 
82
-	protected function get_item_count_result()
83
-	{
82
+	protected function get_item_count_result()
83
+	{
84 84
 		return WaterfallCollector::getListCount();
85 85
 	}
86 86
 
87
-	protected function get_list_description_pattern()
88
-	{
87
+	protected function get_list_description_pattern()
88
+	{
89 89
 		return self::$NAVIGATION_DESCRIPTION;
90 90
 	}
91 91
 
92
-	protected function get_list_link_root()
93
-	{
92
+	protected function get_list_link_root()
93
+	{
94 94
 		return self::$LINK_ROOT;
95 95
 	}
96 96
 
Please login to merge, or discard this patch.
controller/waterfalls/DefaultPageController.class.inc.php 1 patch
Braces   +8 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', '/PageController');
4 4
 
5
-abstract class DefaultPageController extends PageController
6
-{
5
+abstract class DefaultPageController extends PageController
6
+{
7 7
 
8 8
 	protected static $WEBSITE_TITLE = 'Waterfalls of the Keweenaw';
9 9
 	protected static $PAGE_DESCRIPTION_LIMIT = 250;
@@ -12,22 +12,22 @@  discard block
 block discarded – undo
12 12
 
13 13
     protected $parent_navigation_item = '';
14 14
 
15
-	protected function set_head_data()
16
-	{
15
+	protected function set_head_data()
16
+	{
17 17
 		$this->set_head('google_verification', 'm9ua4n8lp4FUYYa2UOh51UyZYfdivl-kRTtXKwaH0-s');
18 18
 		$this->add_css('normalize');
19 19
 		$this->add_css('waterfalls');
20 20
 	}
21 21
 
22
-    protected function add_waterfall_js()
23
-    {
22
+    protected function add_waterfall_js()
23
+    {
24 24
         $this->add_js('jquery');
25 25
         $this->add_js('imagelightbox');
26 26
         $this->add_js('waterfalls');
27 27
     }
28 28
 
29
-	protected function set_body_data($page_type = 'normal')
30
-	{
29
+	protected function set_body_data($page_type = 'normal')
30
+	{
31 31
 		$this->set_body('activity_array', $this->get_recent_activity());
32 32
 
33 33
         $this->set_body('main_navigation', array(
Please login to merge, or discard this patch.
controller/waterfalls/CompanionListController.class.inc.php 1 patch
Braces   +27 added lines, -26 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@  discard block
 block discarded – undo
3 3
 Loader::load('collector', 'waterfall/CompanionCollector');
4 4
 Loader::load('controller', 'waterfalls/DefaultLogListController');
5 5
 
6
-final class CompanionListController extends DefaultLogListController
7
-{
6
+final class CompanionListController extends DefaultLogListController
7
+{
8 8
 
9 9
 	private static $DEFAULT_TITLE = 'Hiking with %s, Page %d of %d';
10 10
 	private static $DEFAULT_DESCRIPTION = 'Page %d of %d of legendary hiking stories with %s written by Jacob Emerick, all about his adventures hunting waterfalls in the Upper Peninsula of Michigan';
@@ -22,19 +22,20 @@  discard block
 block discarded – undo
22 22
 
23 23
 	private $companion;
24 24
 
25
-	public function __construct()
26
-	{
25
+	public function __construct()
26
+	{
27 27
 		$alias = URLDecode::getPiece(2);
28 28
 		$this->companion = CompanionCollector::getByAlias($alias);
29 29
 		
30
-		if(!$this->companion)
31
-			$this->eject();
30
+		if(!$this->companion) {
31
+					$this->eject();
32
+		}
32 33
 		
33 34
 		parent::__construct();
34 35
 	}
35 36
 
36
-	protected function get_initial_meta()
37
-	{
37
+	protected function get_initial_meta()
38
+	{
38 39
 		$meta_array = array();
39 40
 		
40 41
 		$meta_array['title'] = "Hiking Stories with {$this->companion->name} | " . self::$WEBSITE_TITLE;
@@ -44,8 +45,8 @@  discard block
 block discarded – undo
44 45
 		return $meta_array;
45 46
 	}
46 47
 
47
-	protected function get_subsequent_meta()
48
-	{
48
+	protected function get_subsequent_meta()
49
+	{
49 50
 		$meta_array = array();
50 51
 		
51 52
 		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count);
@@ -55,15 +56,15 @@  discard block
 block discarded – undo
55 56
 		return $meta_array;
56 57
 	}
57 58
 
58
-	private function get_keyword_array()
59
-	{
59
+	private function get_keyword_array()
60
+	{
60 61
 		$keyword_array = self::$KEYWORD_ARRAY;
61 62
 		array_unshift($keyword_array, strtolower($this->companion->name));
62 63
 		return $keyword_array;
63 64
 	}
64 65
 
65
-	protected function get_initial_introduction()
66
-	{
66
+	protected function get_initial_introduction()
67
+	{
67 68
 		$introduction = array();
68 69
 		
69 70
 		$introduction['title'] = $this->companion->title;
@@ -73,34 +74,34 @@  discard block
 block discarded – undo
73 74
 		return $introduction;
74 75
 	}
75 76
 
76
-	protected function get_subsequent_introduction()
77
-	{
77
+	protected function get_subsequent_introduction()
78
+	{
78 79
 		return array(
79 80
 			'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->companion->name));
80 81
 	}
81 82
 
82
-	protected function get_page_number_piece()
83
-	{
83
+	protected function get_page_number_piece()
84
+	{
84 85
 		return URLDecode::getPiece(3);
85 86
 	}
86 87
 
87
-	protected function get_item_result($total, $offset)
88
-	{
88
+	protected function get_item_result($total, $offset)
89
+	{
89 90
 		return CompanionCollector::getLogListForCompanion($this->companion->id, $total, $offset);
90 91
 	}
91 92
 
92
-	protected function get_item_count_result()
93
-	{
93
+	protected function get_item_count_result()
94
+	{
94 95
 		return CompanionCollector::getLogCountForCompanion($this->companion->id);
95 96
 	}
96 97
 
97
-	protected function get_list_description_pattern()
98
-	{
98
+	protected function get_list_description_pattern()
99
+	{
99 100
 		return str_replace('%COMPANION%', $this->companion->name, self::$NAVIGATION_DESCRIPTION);
100 101
 	}
101 102
 
102
-	protected function get_list_link_root()
103
-	{
103
+	protected function get_list_link_root()
104
+	{
104 105
 		return sprintf(self::$LINK_ROOT, $this->companion->alias);
105 106
 	}
106 107
 
Please login to merge, or discard this patch.
controller/waterfalls/SearchListController.class.inc.php 1 patch
Braces   +23 added lines, -22 removed lines patch added patch discarded remove patch
@@ -2,16 +2,16 @@  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()
14
+	{
15 15
 		parent::set_head_data();
16 16
 		
17 17
 		$this->set_title(self::$TITLE);
@@ -19,47 +19,48 @@  discard block
 block discarded – undo
19 19
 		$this->set_keywords(self::$KEYWORD_ARRAY);
20 20
 	}
21 21
 
22
-	protected function get_introduction()
23
-	{
22
+	protected function get_introduction()
23
+	{
24 24
 		return;
25 25
 	}
26 26
 
27
-	protected function get_page_number()
28
-	{
27
+	protected function get_page_number()
28
+	{
29 29
 		$page = URLDecode::getPiece(2);
30
-		if(isset($page) && is_numeric($page))
31
-			return $page;
30
+		if(isset($page) && is_numeric($page)) {
31
+					return $page;
32
+		}
32 33
 		return 1;
33 34
 	}
34 35
 
35
-	protected function get_items()
36
-	{
36
+	protected function get_items()
37
+	{
37 38
 		return array();
38 39
 	}
39 40
 
40
-	protected function get_list_description()
41
-	{
41
+	protected function get_list_description()
42
+	{
42 43
 		return 'yay cloud';
43 44
 	}
44 45
 
45
-	protected function get_list_next_link()
46
-	{
46
+	protected function get_list_next_link()
47
+	{
47 48
 		return '/';
48 49
 	}
49 50
 
50
-	protected function get_list_prev_link()
51
-	{
51
+	protected function get_list_prev_link()
52
+	{
52 53
 		return '/';
53 54
 	}
54 55
 
55 56
 	private $total_post_count;
56
-	protected function get_item_count()
57
-	{
57
+	protected function get_item_count()
58
+	{
58 59
 		return 20;
59 60
 	}
60 61
 
61
-	protected function get_item_count_per_page()
62
-	{
62
+	protected function get_item_count_per_page()
63
+	{
63 64
 		return 20;
64 65
 	}
65 66
 
Please login to merge, or discard this patch.
controller/waterfalls/LogTagListController.class.inc.php 1 patch
Braces   +27 added lines, -26 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@  discard block
 block discarded – undo
3 3
 Loader::load('collector', 'waterfall/LogTagCollector');
4 4
 Loader::load('controller', 'waterfalls/DefaultLogListController');
5 5
 
6
-final class LogTagListController extends DefaultLogListController
7
-{
6
+final class LogTagListController extends DefaultLogListController
7
+{
8 8
 
9 9
 	private static $DEFAULT_TITLE = 'Hiking with %s, Page %d of %d';
10 10
 	private static $DEFAULT_DESCRIPTION = 'Page %d of %d of legendary hiking stories with %s written by Jacob Emerick, all about his adventures hunting waterfalls in the Upper Peninsula of Michigan';
@@ -22,19 +22,20 @@  discard block
 block discarded – undo
22 22
 
23 23
 	private $tag;
24 24
 
25
-	public function __construct()
26
-	{
25
+	public function __construct()
26
+	{
27 27
 		$alias = URLDecode::getPiece(3);
28 28
 		$this->tag = LogTagCollector::getTag($alias);
29 29
 		
30
-		if(!$this->tag)
31
-			$this->eject();
30
+		if(!$this->tag) {
31
+					$this->eject();
32
+		}
32 33
 		
33 34
 		parent::__construct();
34 35
 	}
35 36
 
36
-	protected function get_initial_meta()
37
-	{
37
+	protected function get_initial_meta()
38
+	{
38 39
 		$meta_array = array();
39 40
 		
40 41
 		$meta_array['title'] = "{$this->tag->name} | " . self::$WEBSITE_TITLE;
@@ -44,8 +45,8 @@  discard block
 block discarded – undo
44 45
 		return $meta_array;
45 46
 	}
46 47
 
47
-	protected function get_subsequent_meta()
48
-	{
48
+	protected function get_subsequent_meta()
49
+	{
49 50
 		$meta_array = array();
50 51
 		
51 52
 		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count);
@@ -55,46 +56,46 @@  discard block
 block discarded – undo
55 56
 		return $meta_array;
56 57
 	}
57 58
 
58
-	private function get_keyword_array()
59
-	{
59
+	private function get_keyword_array()
60
+	{
60 61
 		$keyword_array = self::$KEYWORD_ARRAY;
61 62
 		array_unshift($keyword_array, strtolower($this->tag->name));
62 63
 		return $keyword_array;
63 64
 	}
64 65
 
65
-	protected function get_initial_introduction()
66
-	{
66
+	protected function get_initial_introduction()
67
+	{
67 68
 		return array(
68 69
 			'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->tag->name));
69 70
 	}
70 71
 
71
-	protected function get_subsequent_introduction()
72
-	{
72
+	protected function get_subsequent_introduction()
73
+	{
73 74
 		return $this->get_initial_introduction();
74 75
 	}
75 76
 
76
-	protected function get_page_number_piece()
77
-	{
77
+	protected function get_page_number_piece()
78
+	{
78 79
 		return URLDecode::getPiece(3);
79 80
 	}
80 81
 
81
-	protected function get_item_result($total, $offset)
82
-	{
82
+	protected function get_item_result($total, $offset)
83
+	{
83 84
 		return LogTagCollector::getLogListForTag($this->tag->id, $total, $offset);
84 85
 	}
85 86
 
86
-	protected function get_item_count_result()
87
-	{
87
+	protected function get_item_count_result()
88
+	{
88 89
 		return LogTagCollector::getLogCountForTag($this->tag->id);
89 90
 	}
90 91
 
91
-	protected function get_list_description_pattern()
92
-	{
92
+	protected function get_list_description_pattern()
93
+	{
93 94
 		return str_replace('%TAG%', $this->tag->name, self::$NAVIGATION_DESCRIPTION);
94 95
 	}
95 96
 
96
-	protected function get_list_link_root()
97
-	{
97
+	protected function get_list_link_root()
98
+	{
98 99
 		return sprintf(self::$LINK_ROOT, $this->tag->alias);
99 100
 	}
100 101
 
Please login to merge, or discard this patch.