Completed
Push — master ( 72ee7f...4775c0 )
by Jacob
03:43
created
controller/waterfalls/LogController.class.inc.php 2 patches
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         $log_path = URLDecode::getPiece(2);
26 26
         
27 27
         $this->log = LogCollector::getByAlias($log_path);
28
-        if(!$this->log)
28
+        if (!$this->log)
29 29
             $this->eject();
30 30
 
31 31
         $this->parent_navigation_item = 'journal';
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $this->handle_comment_submit(
34 34
             self::$WATERFALL_SITE_ID,
35 35
             $this->log->alias,
36
-            Loader::getRootUrl('waterfalls') . self::$JOURNAL_DIRECTORY . '/' . $this->log->alias . '/',
36
+            Loader::getRootUrl('waterfalls').self::$JOURNAL_DIRECTORY.'/'.$this->log->alias.'/',
37 37
             $this->log->title);
38 38
         
39 39
         $this->add_waterfall_js();
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
     {
44 44
         parent::set_head_data();
45 45
         
46
-        $this->set_title("{$this->log->title} | " . self::$WEBSITE_TITLE);
46
+        $this->set_title("{$this->log->title} | ".self::$WEBSITE_TITLE);
47 47
         $this->set_description($this->log->introduction);
48 48
         
49 49
         $keyword_array = array();
50 50
         $tag_result = LogCollector::getTagListForLog($this->log->id);
51
-        foreach($tag_result as $tag)
51
+        foreach ($tag_result as $tag)
52 52
         {
53 53
             $keyword_array[] = $tag->name;
54 54
         }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         
78 78
         $formatted_log['introduction'] = $this->get_log_introduction($this->log);
79 79
         $formatted_log['title'] = $this->log->title;
80
-        $formatted_log['url'] = Loader::getRootURL('waterfalls') . self::$JOURNAL_DIRECTORY . '/' . $this->log->alias . '/';
80
+        $formatted_log['url'] = Loader::getRootURL('waterfalls').self::$JOURNAL_DIRECTORY.'/'.$this->log->alias.'/';
81 81
 
82 82
         $formatted_log['body'] = $this->get_formatted_log_body();
83 83
         
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         return array(
90 90
             'title' => $log->title,
91
-            'url' => Loader::getRootURL('waterfalls') . self::$JOURNAL_DIRECTORY . '/' . $log->alias . '/',
91
+            'url' => Loader::getRootURL('waterfalls').self::$JOURNAL_DIRECTORY.'/'.$log->alias.'/',
92 92
             'date' => $this->get_parsed_date($log->date),
93 93
             'publish_date' => $this->get_parsed_date($log->publish_date),
94 94
             'introduction' => $log->introduction,
@@ -120,19 +120,19 @@  discard block
 block discarded – undo
120 120
             'next' => array());
121 121
         
122 122
         $previous_log = LogCollector::getPreviousLog($this->log->id);
123
-        if($previous_log != false)
123
+        if ($previous_log != false)
124 124
         {
125 125
             $series['previous'] = (object) array(
126
-                'path' => '/' . self::$JOURNAL_DIRECTORY . '/' . $previous_log->alias . '/',
126
+                'path' => '/'.self::$JOURNAL_DIRECTORY.'/'.$previous_log->alias.'/',
127 127
                 'title' => $previous_log->title,
128 128
                 'date' => $previous_log->date);
129 129
         }
130 130
         
131 131
         $next_log = LogCollector::getNextLog($this->log->id);
132
-        if($next_log != false)
132
+        if ($next_log != false)
133 133
         {
134 134
             $series['next'] = (object) array(
135
-                'path' => '/' . self::$JOURNAL_DIRECTORY . '/' . $next_log->alias . '/',
135
+                'path' => '/'.self::$JOURNAL_DIRECTORY.'/'.$next_log->alias.'/',
136 136
                 'title' => $next_log->title,
137 137
                 'date' => $next_log->date);
138 138
         }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         
147 147
         $sidebar['companion_list'] = array();
148 148
         $companions = LogCollector::getCompanionListForLog($this->log->id);
149
-        foreach($companions as $companion)
149
+        foreach ($companions as $companion)
150 150
         {
151 151
             $sidebar['companion_list'][] = (object) array(
152 152
                 'title' => $companion->name,
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         
156 156
         $sidebar['tag_list'] = array();
157 157
         $tags = LogCollector::getTagListForLog($this->log->id);
158
-        foreach($tags as $tag)
158
+        foreach ($tags as $tag)
159 159
         {
160 160
             $sidebar['tag_list'][] = (object) array(
161 161
                 'title' => $tag->name,
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         
165 165
         $sidebar['waterfall_list'] = array();
166 166
         $waterfalls = LogCollector::getWaterfallListForLog($this->log->id);
167
-        foreach($waterfalls as $waterfall)
167
+        foreach ($waterfalls as $waterfall)
168 168
         {
169 169
             $sidebar['waterfall_list'][] = (object) array(
170 170
                 'title' => $waterfall->name,
@@ -178,17 +178,17 @@  discard block
 block discarded – undo
178 178
     {
179 179
         $album = array();
180 180
         
181
-        if($this->log->album == 0)
181
+        if ($this->log->album == 0)
182 182
             return $album;
183 183
         
184 184
         $photo_list = AlbumCollector::getPhotoListForAlbum($this->log->album);
185
-        foreach($photo_list as $photo)
185
+        foreach ($photo_list as $photo)
186 186
         {
187 187
             $photo_array = array();
188 188
             $photo_array['full_link'] = sprintf(self::$FULL_IMAGE_LINK, $photo->category, $photo->name);
189 189
             $photo_array['description'] = $photo->description;
190 190
             
191
-            if($photo->height < $photo->width)
191
+            if ($photo->height < $photo->width)
192 192
                 list($height, $width) = array(75, 100);
193 193
             else
194 194
                 list($height, $width) = array(100, 75);
Please login to merge, or discard this patch.
Braces   +22 added lines, -28 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/DefaultPageController');
7 7
 
8
-final class LogController extends DefaultPageController
9
-{
8
+final class LogController extends DefaultPageController
9
+{
10 10
 
11 11
     private static $AUTHOR = 'Jacob Emerick';
12 12
     private static $AUTHOR_URL = 'https://home.jacobemerick.com/';
@@ -18,15 +18,15 @@  discard block
 block discarded – undo
18 18
 
19 19
     private $log;
20 20
 
21
-    public function __construct()
22
-    {
21
+    public function __construct() {
23 22
         parent::__construct();
24 23
         
25 24
         $log_path = URLDecode::getPiece(2);
26 25
         
27 26
         $this->log = LogCollector::getByAlias($log_path);
28
-        if(!$this->log)
29
-            $this->eject();
27
+        if(!$this->log) {
28
+                    $this->eject();
29
+        }
30 30
 
31 31
         $this->parent_navigation_item = 'journal';
32 32
         
@@ -39,8 +39,7 @@  discard block
 block discarded – undo
39 39
         $this->add_waterfall_js();
40 40
     }
41 41
 
42
-    protected function set_head_data()
43
-    {
42
+    protected function set_head_data() {
44 43
         parent::set_head_data();
45 44
         
46 45
         $this->set_title("{$this->log->title} | " . self::$WEBSITE_TITLE);
@@ -56,8 +55,7 @@  discard block
 block discarded – undo
56 55
         $this->set_keywords($keyword_array);
57 56
     }
58 57
 
59
-    protected function set_body_data($page_type = 'normal')
60
-    {
58
+    protected function set_body_data($page_type = 'normal') {
61 59
         parent::set_body_data($page_type);
62 60
         
63 61
         $this->set_body('view', 'Log');
@@ -71,8 +69,7 @@  discard block
 block discarded – undo
71 69
         $this->set_body('data', $body_data);
72 70
     }
73 71
 
74
-    private function get_formatted_log()
75
-    {
72
+    private function get_formatted_log() {
76 73
         $formatted_log = array();
77 74
         
78 75
         $formatted_log['introduction'] = $this->get_log_introduction($this->log);
@@ -84,8 +81,7 @@  discard block
 block discarded – undo
84 81
         return $formatted_log;
85 82
     }
86 83
 
87
-    private function get_log_introduction($log)
88
-    {
84
+    private function get_log_introduction($log) {
89 85
         return array(
90 86
             'title' => $log->title,
91 87
             'url' => Loader::getRootURL('waterfalls') . self::$JOURNAL_DIRECTORY . '/' . $log->alias . '/',
@@ -103,8 +99,7 @@  discard block
 block discarded – undo
103 99
     }
104 100
 
105 101
     // @todo - link things up
106
-    private function get_formatted_log_body()
107
-    {
102
+    private function get_formatted_log_body() {
108 103
         $body = $this->log->body;
109 104
         
110 105
         $body = Content::instance('FixPhoto', $body)->activate(false, 'standard');
@@ -113,8 +108,7 @@  discard block
 block discarded – undo
113 108
         return $body;
114 109
     }
115 110
 
116
-    private function get_series()
117
-    {
111
+    private function get_series() {
118 112
         $series = array(
119 113
             'previous' => array(),
120 114
             'next' => array());
@@ -140,8 +134,7 @@  discard block
 block discarded – undo
140 134
         return $series;
141 135
     }
142 136
 
143
-    private function get_sidebar()
144
-    {
137
+    private function get_sidebar() {
145 138
         $sidebar = array();
146 139
         
147 140
         $sidebar['companion_list'] = array();
@@ -174,12 +167,12 @@  discard block
 block discarded – undo
174 167
         return $sidebar;
175 168
     }
176 169
 
177
-    private function get_album()
178
-    {
170
+    private function get_album() {
179 171
         $album = array();
180 172
         
181
-        if($this->log->album == 0)
182
-            return $album;
173
+        if($this->log->album == 0) {
174
+                    return $album;
175
+        }
183 176
         
184 177
         $photo_list = AlbumCollector::getPhotoListForAlbum($this->log->album);
185 178
         foreach($photo_list as $photo)
@@ -188,10 +181,11 @@  discard block
 block discarded – undo
188 181
             $photo_array['full_link'] = sprintf(self::$FULL_IMAGE_LINK, $photo->category, $photo->name);
189 182
             $photo_array['description'] = $photo->description;
190 183
             
191
-            if($photo->height < $photo->width)
192
-                list($height, $width) = array(75, 100);
193
-            else
194
-                list($height, $width) = array(100, 75);
184
+            if($photo->height < $photo->width) {
185
+                            list($height, $width) = array(75, 100);
186
+            } else {
187
+                            list($height, $width) = array(100, 75);
188
+            }
195 189
             
196 190
             $photo_array['image_node'] = sprintf(
197 191
                 self::$THUMB_IMAGE_NODE,
Please login to merge, or discard this patch.
controller/waterfalls/WaterfallController.class.inc.php 3 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $this->handle_comment_submit(
34 34
             self::$WATERFALL_SITE_ID,
35 35
             "{$this->waterfall->watercourse_alias}/{$this->waterfall->alias}",
36
-            Loader::getRootUrl('waterfalls') . "{$this->waterfall->watercourse_alias}/{$this->waterfall->alias}/",
36
+            Loader::getRootUrl('waterfalls')."{$this->waterfall->watercourse_alias}/{$this->waterfall->alias}/",
37 37
             $this->waterfall->name);
38 38
         
39 39
         $this->add_waterfall_js();
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     {
44 44
         parent::set_head_data();
45 45
 
46
-        $this->set_title("{$this->waterfall->name} on {$this->waterfall->watercourse} | " . self::$WEBSITE_TITLE);
46
+        $this->set_title("{$this->waterfall->name} on {$this->waterfall->watercourse} | ".self::$WEBSITE_TITLE);
47 47
         $this->set_description($this->waterfall->description);
48 48
         $this->set_keywords((array) $this->waterfall->name);
49 49
     }
@@ -112,17 +112,17 @@  discard block
 block discarded – undo
112 112
     {
113 113
         $album = array();
114 114
         
115
-        if($this->waterfall->album == 0)
115
+        if ($this->waterfall->album == 0)
116 116
             return $album;
117 117
         
118 118
         $photo_list = AlbumCollector::getPhotoListForAlbum($this->waterfall->album);
119
-        foreach($photo_list as $photo)
119
+        foreach ($photo_list as $photo)
120 120
         {
121 121
             $photo_array = array();
122 122
             $photo_array['full_link'] = sprintf(self::$FULL_IMAGE_LINK, $photo->category, $photo->name);
123 123
             $photo_array['description'] = $photo->description;
124 124
             
125
-            if($photo->height < $photo->width)
125
+            if ($photo->height < $photo->width)
126 126
                 list($height, $width) = array(75, 100);
127 127
             else
128 128
                 list($height, $width) = array(100, 75);
@@ -147,14 +147,14 @@  discard block
 block discarded – undo
147 147
 		$sidebar_data['name'] = $waterfall->name;
148 148
 		$sidebar_data['watercourse'] = $waterfall->watercourse;
149 149
         $sidebar_data['main_watercourse'] = $this->get_main_watercourse($waterfall->watercourse_alias);
150
-		$sidebar_data['rating_display'] = ($waterfall->rating / 2) . '/5';
150
+		$sidebar_data['rating_display'] = ($waterfall->rating / 2).'/5';
151 151
         $sidebar_data['rating'] = $waterfall->rating;
152 152
 		$sidebar_data['height'] = Content::instance('ImperialUnit', $waterfall->height)->activate('inches');
153 153
 		$sidebar_data['width'] = Content::instance('ImperialUnit', $waterfall->width)->activate('inches');
154 154
 		$sidebar_data['drop_height'] = Content::instance('ImperialUnit', $waterfall->drop_height)->activate('inches');
155 155
 		$sidebar_data['drop_count'] = $waterfall->drop_count;
156 156
 		
157
-        $sidebar_data['county'] = (object) array (
157
+        $sidebar_data['county'] = (object) array(
158 158
             'name' => $waterfall->county,
159 159
             'alias' => $waterfall->county_alias,
160 160
             'title' => $waterfall->county_title,
Please login to merge, or discard this patch.
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
         $this->waterfall = WaterfallCollector::getByAlias($path_watercourse, $path_fall);
29 29
         if (!$this->waterfall) {
30
-              $this->eject();
30
+                $this->eject();
31 31
         }
32 32
         
33 33
         $this->handle_comment_submit(
@@ -141,18 +141,18 @@  discard block
 block discarded – undo
141 141
         return $album;
142 142
     }
143 143
 
144
-	private function get_sidebar($waterfall)
145
-	{
146
-		$sidebar_data = array();
147
-		$sidebar_data['name'] = $waterfall->name;
148
-		$sidebar_data['watercourse'] = $waterfall->watercourse;
144
+    private function get_sidebar($waterfall)
145
+    {
146
+        $sidebar_data = array();
147
+        $sidebar_data['name'] = $waterfall->name;
148
+        $sidebar_data['watercourse'] = $waterfall->watercourse;
149 149
         $sidebar_data['main_watercourse'] = $this->get_main_watercourse($waterfall->watercourse_alias);
150
-		$sidebar_data['rating_display'] = ($waterfall->rating / 2) . '/5';
150
+        $sidebar_data['rating_display'] = ($waterfall->rating / 2) . '/5';
151 151
         $sidebar_data['rating'] = $waterfall->rating;
152
-		$sidebar_data['height'] = Content::instance('ImperialUnit', $waterfall->height)->activate('inches');
153
-		$sidebar_data['width'] = Content::instance('ImperialUnit', $waterfall->width)->activate('inches');
154
-		$sidebar_data['drop_height'] = Content::instance('ImperialUnit', $waterfall->drop_height)->activate('inches');
155
-		$sidebar_data['drop_count'] = $waterfall->drop_count;
152
+        $sidebar_data['height'] = Content::instance('ImperialUnit', $waterfall->height)->activate('inches');
153
+        $sidebar_data['width'] = Content::instance('ImperialUnit', $waterfall->width)->activate('inches');
154
+        $sidebar_data['drop_height'] = Content::instance('ImperialUnit', $waterfall->drop_height)->activate('inches');
155
+        $sidebar_data['drop_count'] = $waterfall->drop_count;
156 156
 		
157 157
         $sidebar_data['county'] = (object) array (
158 158
             'name' => $waterfall->county,
@@ -160,10 +160,10 @@  discard block
 block discarded – undo
160 160
             'title' => $waterfall->county_title,
161 161
         );
162 162
         
163
-		$sidebar_data['nearest_town'] = $waterfall->nearest_town;
164
-		$sidebar_data['latitude'] = round($waterfall->latitude, 5);
165
-		$sidebar_data['longitude'] = round($waterfall->longitude, 5);
166
-		$sidebar_data['elevation'] = Content::instance('ImperialUnit', $waterfall->elevation)->activate('feet');
163
+        $sidebar_data['nearest_town'] = $waterfall->nearest_town;
164
+        $sidebar_data['latitude'] = round($waterfall->latitude, 5);
165
+        $sidebar_data['longitude'] = round($waterfall->longitude, 5);
166
+        $sidebar_data['elevation'] = Content::instance('ImperialUnit', $waterfall->elevation)->activate('feet');
167 167
         
168 168
         $sidebar_data['map'] = $this->get_map_piece($waterfall);
169 169
         
@@ -171,8 +171,8 @@  discard block
 block discarded – undo
171 171
         
172 172
         $sidebar_data['nearby_list'] = $this->get_nearby_list($waterfall->id);
173 173
 		
174
-		return $sidebar_data;
175
-	}
174
+        return $sidebar_data;
175
+    }
176 176
 
177 177
     private function get_journal_list($waterfall)
178 178
     {
Please login to merge, or discard this patch.
Braces   +22 added lines, -32 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@  discard block
 block discarded – undo
7 7
     'waterfall/LogCollector'));
8 8
 Loader::load('controller', 'waterfalls/DefaultPageController');
9 9
 
10
-final class WaterfallController extends DefaultPageController
11
-{
10
+final class WaterfallController extends DefaultPageController
11
+{
12 12
 
13 13
     private static $STANDARD_IMAGE_NODE = '<img src="/photo/%s/%s-size-standard.jpg" alt="%s" height="600" width="800" />';
14 14
 
@@ -18,8 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
     private $waterfall;
20 20
 
21
-    public function __construct()
22
-    {
21
+    public function __construct() {
23 22
         parent::__construct();
24 23
 
25 24
         $path_watercourse = URLDecode::getPiece(1);
@@ -39,8 +38,7 @@  discard block
 block discarded – undo
39 38
         $this->add_waterfall_js();
40 39
     }
41 40
 
42
-    protected function set_head_data()
43
-    {
41
+    protected function set_head_data() {
44 42
         parent::set_head_data();
45 43
 
46 44
         $this->set_title("{$this->waterfall->name} on {$this->waterfall->watercourse} | " . self::$WEBSITE_TITLE);
@@ -48,8 +46,7 @@  discard block
 block discarded – undo
48 46
         $this->set_keywords((array) $this->waterfall->name);
49 47
     }
50 48
 
51
-    protected function set_body_data($page_type = 'normal')
52
-    {
49
+    protected function set_body_data($page_type = 'normal') {
53 50
         parent::set_body_data($page_type);
54 51
 
55 52
         $body_data = $this->format_waterfall_data($this->waterfall);
@@ -60,8 +57,7 @@  discard block
 block discarded – undo
60 57
         $this->set_body('view', 'Fall');
61 58
     }
62 59
 
63
-    private function format_waterfall_data($waterfall)
64
-    {
60
+    private function format_waterfall_data($waterfall) {
65 61
         $waterfall_data = array();
66 62
         $waterfall_data['introduction'] = $this->get_waterfall_introduction($waterfall);
67 63
         $waterfall_data['name'] = $waterfall->name;
@@ -77,8 +73,7 @@  discard block
 block discarded – undo
77 73
         return $waterfall_data;
78 74
     }
79 75
 
80
-    private function get_waterfall_introduction($waterfall)
81
-    {
76
+    private function get_waterfall_introduction($waterfall) {
82 77
         return array(
83 78
             'path' => "/{$waterfall->watercourse_alias}/{$waterfall->alias}/",
84 79
             'name' => $waterfall->name,
@@ -87,8 +82,7 @@  discard block
 block discarded – undo
87 82
         );
88 83
     }
89 84
 
90
-    private function get_main_watercourse($alias)
91
-    {
85
+    private function get_main_watercourse($alias) {
92 86
         $watercourse = WatercourseCollector::getByAlias($alias);
93 87
         if ($watercourse->parent != 0) {
94 88
             $watercourse = WatercourseCollector::getById($watercourse->parent);
@@ -101,19 +95,18 @@  discard block
 block discarded – undo
101 95
         );
102 96
     }
103 97
 
104
-    private function format_waterfall_content($content)
105
-    {
98
+    private function format_waterfall_content($content) {
106 99
         $content = Content::instance('FixInternalLink', $content)->activate();
107 100
         
108 101
         return $content;
109 102
     }
110 103
 
111
-    private function get_album()
112
-    {
104
+    private function get_album() {
113 105
         $album = array();
114 106
         
115
-        if($this->waterfall->album == 0)
116
-            return $album;
107
+        if($this->waterfall->album == 0) {
108
+                    return $album;
109
+        }
117 110
         
118 111
         $photo_list = AlbumCollector::getPhotoListForAlbum($this->waterfall->album);
119 112
         foreach($photo_list as $photo)
@@ -122,10 +115,11 @@  discard block
 block discarded – undo
122 115
             $photo_array['full_link'] = sprintf(self::$FULL_IMAGE_LINK, $photo->category, $photo->name);
123 116
             $photo_array['description'] = $photo->description;
124 117
             
125
-            if($photo->height < $photo->width)
126
-                list($height, $width) = array(75, 100);
127
-            else
128
-                list($height, $width) = array(100, 75);
118
+            if($photo->height < $photo->width) {
119
+                            list($height, $width) = array(75, 100);
120
+            } else {
121
+                            list($height, $width) = array(100, 75);
122
+            }
129 123
             
130 124
             $photo_array['image_node'] = sprintf(
131 125
                 self::$THUMB_IMAGE_NODE,
@@ -141,8 +135,7 @@  discard block
 block discarded – undo
141 135
         return $album;
142 136
     }
143 137
 
144
-	private function get_sidebar($waterfall)
145
-	{
138
+	private function get_sidebar($waterfall) {
146 139
 		$sidebar_data = array();
147 140
 		$sidebar_data['name'] = $waterfall->name;
148 141
 		$sidebar_data['watercourse'] = $waterfall->watercourse;
@@ -174,8 +167,7 @@  discard block
 block discarded – undo
174 167
 		return $sidebar_data;
175 168
 	}
176 169
 
177
-    private function get_journal_list($waterfall)
178
-    {
170
+    private function get_journal_list($waterfall) {
179 171
         $list = array();
180 172
         $log_result = LogCollector::getLogListForWaterfall($waterfall);
181 173
         foreach ($log_result as $log_row) {
@@ -189,8 +181,7 @@  discard block
 block discarded – undo
189 181
         return $list;
190 182
     }
191 183
 
192
-    private function get_map_piece($waterfall)
193
-    {
184
+    private function get_map_piece($waterfall) {
194 185
         $map_holder = array();
195 186
         
196 187
         $url = 'https://maps.googleapis.com/maps/api/staticmap';
@@ -211,8 +202,7 @@  discard block
 block discarded – undo
211 202
         return (object) $map_holder;
212 203
     }
213 204
 
214
-    private function get_nearby_list($waterfall)
215
-    {
205
+    private function get_nearby_list($waterfall) {
216 206
         $nearby_list = array();
217 207
         
218 208
         $result = WaterfallCollector::getNearbyList($waterfall);
Please login to merge, or discard this patch.
controller/waterfalls/CountyListController.class.inc.php 3 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 		$path = URLDecode::getPiece(1);
29 29
 		$this->county = CountyCollector::getByAlias($path);
30 30
 		
31
-		if(!$this->county)
31
+		if (!$this->county)
32 32
 			$this->eject();
33 33
 		
34 34
 		parent::__construct();
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	{
39 39
 		$meta_array = array();
40 40
 		
41
-		$meta_array['title'] = "{$this->county->name} Waterfalls | " . self::$WEBSITE_TITLE;
41
+		$meta_array['title'] = "{$this->county->name} Waterfalls | ".self::$WEBSITE_TITLE;
42 42
 		$meta_array['description'] = $this->county->description;
43 43
 		$meta_array['keywords'] = $this->get_keyword_array();
44 44
 		
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 	{
50 50
 		$meta_array = array();
51 51
 		
52
-		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->county->name, $this->page, $this->page_count);
52
+		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE.' | '.self::$WEBSITE_TITLE, $this->county->name, $this->page, $this->page_count);
53 53
 		$meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->county->name);
54 54
 		$meta_array['keywords'] = $this->get_keyword_array();
55 55
 		
Please login to merge, or discard this patch.
Indentation   +88 added lines, -88 removed lines patch added patch discarded remove patch
@@ -6,108 +6,108 @@
 block discarded – undo
6 6
 final class CountyListController extends DefaultWaterfallListController
7 7
 {
8 8
 
9
-	private static $DEFAULT_TITLE = '%s Waterfalls, Page %d of %d';
10
-	private static $DEFAULT_DESCRIPTION = 'Page %d of %d of awesome waterfalls in %s, located in the northwestern wilds of Micigan\'s Upper Peninsula.';
11
-	private static $DEFAULT_HEADER = 'Page %d of Awesome %s Waterfalls';
9
+    private static $DEFAULT_TITLE = '%s Waterfalls, Page %d of %d';
10
+    private static $DEFAULT_DESCRIPTION = 'Page %d of %d of awesome waterfalls in %s, located in the northwestern wilds of Micigan\'s Upper Peninsula.';
11
+    private static $DEFAULT_HEADER = 'Page %d of Awesome %s Waterfalls';
12 12
 
13
-	private static $KEYWORD_ARRAY = array(
14
-		'upper peninsula',
15
-		'michigan',
16
-		'keweenaw',
17
-		'waterfalls');
13
+    private static $KEYWORD_ARRAY = array(
14
+        'upper peninsula',
15
+        'michigan',
16
+        'keweenaw',
17
+        'waterfalls');
18 18
 
19
-	private static $NAVIGATION_DESCRIPTION = 'displaying %d ~ %d of %d waterfalls in %COUNTY%';
20
-	private static $LINK_ROOT = '/%s/';
19
+    private static $NAVIGATION_DESCRIPTION = 'displaying %d ~ %d of %d waterfalls in %COUNTY%';
20
+    private static $LINK_ROOT = '/%s/';
21 21
 
22
-	protected static $ITEM_COUNT_PER_PAGE = 12;
22
+    protected static $ITEM_COUNT_PER_PAGE = 12;
23 23
 
24
-	private $county;
24
+    private $county;
25 25
 
26
-	public function __construct()
27
-	{
28
-		$path = URLDecode::getPiece(1);
29
-		$this->county = CountyCollector::getByAlias($path);
26
+    public function __construct()
27
+    {
28
+        $path = URLDecode::getPiece(1);
29
+        $this->county = CountyCollector::getByAlias($path);
30 30
 		
31
-		if(!$this->county)
32
-			$this->eject();
31
+        if(!$this->county)
32
+            $this->eject();
33 33
 		
34
-		parent::__construct();
35
-	}
34
+        parent::__construct();
35
+    }
36 36
 
37
-	protected function get_initial_meta()
38
-	{
39
-		$meta_array = array();
37
+    protected function get_initial_meta()
38
+    {
39
+        $meta_array = array();
40 40
 		
41
-		$meta_array['title'] = "{$this->county->name} Waterfalls | " . self::$WEBSITE_TITLE;
42
-		$meta_array['description'] = $this->county->description;
43
-		$meta_array['keywords'] = $this->get_keyword_array();
41
+        $meta_array['title'] = "{$this->county->name} Waterfalls | " . self::$WEBSITE_TITLE;
42
+        $meta_array['description'] = $this->county->description;
43
+        $meta_array['keywords'] = $this->get_keyword_array();
44 44
 		
45
-		return $meta_array;
46
-	}
45
+        return $meta_array;
46
+    }
47 47
 
48
-	protected function get_subsequent_meta()
49
-	{
50
-		$meta_array = array();
48
+    protected function get_subsequent_meta()
49
+    {
50
+        $meta_array = array();
51 51
 		
52
-		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->county->name, $this->page, $this->page_count);
53
-		$meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->county->name);
54
-		$meta_array['keywords'] = $this->get_keyword_array();
52
+        $meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->county->name, $this->page, $this->page_count);
53
+        $meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->county->name);
54
+        $meta_array['keywords'] = $this->get_keyword_array();
55 55
 		
56
-		return $meta_array;
57
-	}
58
-
59
-	private function get_keyword_array()
60
-	{
61
-		$keyword_array = self::$KEYWORD_ARRAY;
62
-		array_unshift($keyword_array, strtolower($this->county->name));
63
-		return $keyword_array;
64
-	}
65
-
66
-	protected function get_initial_introduction()
67
-	{
68
-		$introduction = array();
56
+        return $meta_array;
57
+    }
58
+
59
+    private function get_keyword_array()
60
+    {
61
+        $keyword_array = self::$KEYWORD_ARRAY;
62
+        array_unshift($keyword_array, strtolower($this->county->name));
63
+        return $keyword_array;
64
+    }
65
+
66
+    protected function get_initial_introduction()
67
+    {
68
+        $introduction = array();
69 69
 		
70
-		$introduction['title'] = $this->county->title;
71
-		$introduction['description'] = Content::instance('FixInternalLink', $this->county->introduction)->activate();
72
-		$introduction['image'] = $this->get_image_element($this->county->photo_category, $this->county->photo, $this->county->photo_description, 'medium');
70
+        $introduction['title'] = $this->county->title;
71
+        $introduction['description'] = Content::instance('FixInternalLink', $this->county->introduction)->activate();
72
+        $introduction['image'] = $this->get_image_element($this->county->photo_category, $this->county->photo, $this->county->photo_description, 'medium');
73 73
 		
74
-		return $introduction;
75
-	}
76
-
77
-	protected function get_subsequent_introduction()
78
-	{
79
-		return array(
80
-			'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->county->name));
81
-	}
82
-
83
-	protected function get_item_count_per_page()
84
-	{
85
-		return self::$ITEM_COUNT_PER_PAGE;
86
-	}
87
-
88
-	protected function get_page_number_piece()
89
-	{
90
-		return URLDecode::getPiece(2);
91
-	}
92
-
93
-	protected function get_item_result($total, $offset)
94
-	{
95
-		return CountyCollector::getLogListForCounty($this->county->id, $total, $offset);
96
-	}
97
-
98
-	protected function get_item_count_result()
99
-	{
100
-		return CountyCollector::getLogCountForCounty($this->county->id);
101
-	}
102
-
103
-	protected function get_list_description_pattern()
104
-	{
105
-		return str_replace('%COUNTY%', $this->county->name, self::$NAVIGATION_DESCRIPTION);
106
-	}
107
-
108
-	protected function get_list_link_root()
109
-	{
110
-		return sprintf(self::$LINK_ROOT, $this->county->alias);
111
-	}
74
+        return $introduction;
75
+    }
76
+
77
+    protected function get_subsequent_introduction()
78
+    {
79
+        return array(
80
+            'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->county->name));
81
+    }
82
+
83
+    protected function get_item_count_per_page()
84
+    {
85
+        return self::$ITEM_COUNT_PER_PAGE;
86
+    }
87
+
88
+    protected function get_page_number_piece()
89
+    {
90
+        return URLDecode::getPiece(2);
91
+    }
92
+
93
+    protected function get_item_result($total, $offset)
94
+    {
95
+        return CountyCollector::getLogListForCounty($this->county->id, $total, $offset);
96
+    }
97
+
98
+    protected function get_item_count_result()
99
+    {
100
+        return CountyCollector::getLogCountForCounty($this->county->id);
101
+    }
102
+
103
+    protected function get_list_description_pattern()
104
+    {
105
+        return str_replace('%COUNTY%', $this->county->name, self::$NAVIGATION_DESCRIPTION);
106
+    }
107
+
108
+    protected function get_list_link_root()
109
+    {
110
+        return sprintf(self::$LINK_ROOT, $this->county->alias);
111
+    }
112 112
 
113 113
 }
114 114
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +17 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/CountyCollector');
4 4
 Loader::load('controller', 'waterfalls/DefaultWaterfallListController');
5 5
 
6
-final class CountyListController extends DefaultWaterfallListController
7
-{
6
+final class CountyListController extends DefaultWaterfallListController
7
+{
8 8
 
9 9
 	private static $DEFAULT_TITLE = '%s Waterfalls, Page %d of %d';
10 10
 	private static $DEFAULT_DESCRIPTION = 'Page %d of %d of awesome waterfalls in %s, located in the northwestern wilds of Micigan\'s Upper Peninsula.';
@@ -23,19 +23,18 @@  discard block
 block discarded – undo
23 23
 
24 24
 	private $county;
25 25
 
26
-	public function __construct()
27
-	{
26
+	public function __construct() {
28 27
 		$path = URLDecode::getPiece(1);
29 28
 		$this->county = CountyCollector::getByAlias($path);
30 29
 		
31
-		if(!$this->county)
32
-			$this->eject();
30
+		if(!$this->county) {
31
+					$this->eject();
32
+		}
33 33
 		
34 34
 		parent::__construct();
35 35
 	}
36 36
 
37
-	protected function get_initial_meta()
38
-	{
37
+	protected function get_initial_meta() {
39 38
 		$meta_array = array();
40 39
 		
41 40
 		$meta_array['title'] = "{$this->county->name} Waterfalls | " . self::$WEBSITE_TITLE;
@@ -45,8 +44,7 @@  discard block
 block discarded – undo
45 44
 		return $meta_array;
46 45
 	}
47 46
 
48
-	protected function get_subsequent_meta()
49
-	{
47
+	protected function get_subsequent_meta() {
50 48
 		$meta_array = array();
51 49
 		
52 50
 		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->county->name, $this->page, $this->page_count);
@@ -56,15 +54,13 @@  discard block
 block discarded – undo
56 54
 		return $meta_array;
57 55
 	}
58 56
 
59
-	private function get_keyword_array()
60
-	{
57
+	private function get_keyword_array() {
61 58
 		$keyword_array = self::$KEYWORD_ARRAY;
62 59
 		array_unshift($keyword_array, strtolower($this->county->name));
63 60
 		return $keyword_array;
64 61
 	}
65 62
 
66
-	protected function get_initial_introduction()
67
-	{
63
+	protected function get_initial_introduction() {
68 64
 		$introduction = array();
69 65
 		
70 66
 		$introduction['title'] = $this->county->title;
@@ -74,39 +70,32 @@  discard block
 block discarded – undo
74 70
 		return $introduction;
75 71
 	}
76 72
 
77
-	protected function get_subsequent_introduction()
78
-	{
73
+	protected function get_subsequent_introduction() {
79 74
 		return array(
80 75
 			'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->county->name));
81 76
 	}
82 77
 
83
-	protected function get_item_count_per_page()
84
-	{
78
+	protected function get_item_count_per_page() {
85 79
 		return self::$ITEM_COUNT_PER_PAGE;
86 80
 	}
87 81
 
88
-	protected function get_page_number_piece()
89
-	{
82
+	protected function get_page_number_piece() {
90 83
 		return URLDecode::getPiece(2);
91 84
 	}
92 85
 
93
-	protected function get_item_result($total, $offset)
94
-	{
86
+	protected function get_item_result($total, $offset) {
95 87
 		return CountyCollector::getLogListForCounty($this->county->id, $total, $offset);
96 88
 	}
97 89
 
98
-	protected function get_item_count_result()
99
-	{
90
+	protected function get_item_count_result() {
100 91
 		return CountyCollector::getLogCountForCounty($this->county->id);
101 92
 	}
102 93
 
103
-	protected function get_list_description_pattern()
104
-	{
94
+	protected function get_list_description_pattern() {
105 95
 		return str_replace('%COUNTY%', $this->county->name, self::$NAVIGATION_DESCRIPTION);
106 96
 	}
107 97
 
108
-	protected function get_list_link_root()
109
-	{
98
+	protected function get_list_link_root() {
110 99
 		return sprintf(self::$LINK_ROOT, $this->county->alias);
111 100
 	}
112 101
 
Please login to merge, or discard this patch.
controller/waterfalls/LogTagListController.class.inc.php 3 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 		$alias = URLDecode::getPiece(3);
28 28
 		$this->tag = LogTagCollector::getTag($alias);
29 29
 		
30
-		if(!$this->tag)
30
+		if (!$this->tag)
31 31
 			$this->eject();
32 32
 		
33 33
 		parent::__construct();
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	{
38 38
 		$meta_array = array();
39 39
 		
40
-		$meta_array['title'] = "{$this->tag->name} | " . self::$WEBSITE_TITLE;
40
+		$meta_array['title'] = "{$this->tag->name} | ".self::$WEBSITE_TITLE;
41 41
 		$meta_array['description'] = $this->tag->name;
42 42
 		$meta_array['keywords'] = $this->get_keyword_array();
43 43
 		
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	{
49 49
 		$meta_array = array();
50 50
 		
51
-		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count);
51
+		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE.' | '.self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count);
52 52
 		$meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->tag->name);
53 53
 		$meta_array['keywords'] = $this->get_keyword_array();
54 54
 		
Please login to merge, or discard this patch.
Indentation   +83 added lines, -83 removed lines patch added patch discarded remove patch
@@ -6,96 +6,96 @@
 block discarded – undo
6 6
 final class LogTagListController extends DefaultLogListController
7 7
 {
8 8
 
9
-	private static $DEFAULT_TITLE = 'Hiking with %s, Page %d of %d';
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';
11
-	private static $DEFAULT_HEADER = 'Page %d of Legendary Hiking Stories with %s';
12
-
13
-	private static $KEYWORD_ARRAY = array(
14
-		'hiking companions',
15
-		'journal',
16
-		'stories',
17
-		'blog',
18
-		'waterfalls');
19
-
20
-	private static $NAVIGATION_DESCRIPTION = 'displaying %d ~ %d of journal entries with %TAG%';
21
-	private static $LINK_ROOT = '/journal/tag/%s/';
22
-
23
-	private $tag;
24
-
25
-	public function __construct()
26
-	{
27
-		$alias = URLDecode::getPiece(3);
28
-		$this->tag = LogTagCollector::getTag($alias);
9
+    private static $DEFAULT_TITLE = 'Hiking with %s, Page %d of %d';
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';
11
+    private static $DEFAULT_HEADER = 'Page %d of Legendary Hiking Stories with %s';
12
+
13
+    private static $KEYWORD_ARRAY = array(
14
+        'hiking companions',
15
+        'journal',
16
+        'stories',
17
+        'blog',
18
+        'waterfalls');
19
+
20
+    private static $NAVIGATION_DESCRIPTION = 'displaying %d ~ %d of journal entries with %TAG%';
21
+    private static $LINK_ROOT = '/journal/tag/%s/';
22
+
23
+    private $tag;
24
+
25
+    public function __construct()
26
+    {
27
+        $alias = URLDecode::getPiece(3);
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
-		parent::__construct();
34
-	}
33
+        parent::__construct();
34
+    }
35 35
 
36
-	protected function get_initial_meta()
37
-	{
38
-		$meta_array = array();
36
+    protected function get_initial_meta()
37
+    {
38
+        $meta_array = array();
39 39
 		
40
-		$meta_array['title'] = "{$this->tag->name} | " . self::$WEBSITE_TITLE;
41
-		$meta_array['description'] = $this->tag->name;
42
-		$meta_array['keywords'] = $this->get_keyword_array();
40
+        $meta_array['title'] = "{$this->tag->name} | " . self::$WEBSITE_TITLE;
41
+        $meta_array['description'] = $this->tag->name;
42
+        $meta_array['keywords'] = $this->get_keyword_array();
43 43
 		
44
-		return $meta_array;
45
-	}
44
+        return $meta_array;
45
+    }
46 46
 
47
-	protected function get_subsequent_meta()
48
-	{
49
-		$meta_array = array();
47
+    protected function get_subsequent_meta()
48
+    {
49
+        $meta_array = array();
50 50
 		
51
-		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count);
52
-		$meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->tag->name);
53
-		$meta_array['keywords'] = $this->get_keyword_array();
51
+        $meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count);
52
+        $meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->tag->name);
53
+        $meta_array['keywords'] = $this->get_keyword_array();
54 54
 		
55
-		return $meta_array;
56
-	}
57
-
58
-	private function get_keyword_array()
59
-	{
60
-		$keyword_array = self::$KEYWORD_ARRAY;
61
-		array_unshift($keyword_array, strtolower($this->tag->name));
62
-		return $keyword_array;
63
-	}
64
-
65
-	protected function get_initial_introduction()
66
-	{
67
-		return array(
68
-			'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->tag->name));
69
-	}
70
-
71
-	protected function get_subsequent_introduction()
72
-	{
73
-		return $this->get_initial_introduction();
74
-	}
75
-
76
-	protected function get_page_number_piece()
77
-	{
78
-		return URLDecode::getPiece(3);
79
-	}
80
-
81
-	protected function get_item_result($total, $offset)
82
-	{
83
-		return LogTagCollector::getLogListForTag($this->tag->id, $total, $offset);
84
-	}
85
-
86
-	protected function get_item_count_result()
87
-	{
88
-		return LogTagCollector::getLogCountForTag($this->tag->id);
89
-	}
90
-
91
-	protected function get_list_description_pattern()
92
-	{
93
-		return str_replace('%TAG%', $this->tag->name, self::$NAVIGATION_DESCRIPTION);
94
-	}
95
-
96
-	protected function get_list_link_root()
97
-	{
98
-		return sprintf(self::$LINK_ROOT, $this->tag->alias);
99
-	}
55
+        return $meta_array;
56
+    }
57
+
58
+    private function get_keyword_array()
59
+    {
60
+        $keyword_array = self::$KEYWORD_ARRAY;
61
+        array_unshift($keyword_array, strtolower($this->tag->name));
62
+        return $keyword_array;
63
+    }
64
+
65
+    protected function get_initial_introduction()
66
+    {
67
+        return array(
68
+            'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->tag->name));
69
+    }
70
+
71
+    protected function get_subsequent_introduction()
72
+    {
73
+        return $this->get_initial_introduction();
74
+    }
75
+
76
+    protected function get_page_number_piece()
77
+    {
78
+        return URLDecode::getPiece(3);
79
+    }
80
+
81
+    protected function get_item_result($total, $offset)
82
+    {
83
+        return LogTagCollector::getLogListForTag($this->tag->id, $total, $offset);
84
+    }
85
+
86
+    protected function get_item_count_result()
87
+    {
88
+        return LogTagCollector::getLogCountForTag($this->tag->id);
89
+    }
90
+
91
+    protected function get_list_description_pattern()
92
+    {
93
+        return str_replace('%TAG%', $this->tag->name, self::$NAVIGATION_DESCRIPTION);
94
+    }
95
+
96
+    protected function get_list_link_root()
97
+    {
98
+        return sprintf(self::$LINK_ROOT, $this->tag->alias);
99
+    }
100 100
 
101 101
 }
102 102
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +16 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,18 @@  discard block
 block discarded – undo
22 22
 
23 23
 	private $tag;
24 24
 
25
-	public function __construct()
26
-	{
25
+	public function __construct() {
27 26
 		$alias = URLDecode::getPiece(3);
28 27
 		$this->tag = LogTagCollector::getTag($alias);
29 28
 		
30
-		if(!$this->tag)
31
-			$this->eject();
29
+		if(!$this->tag) {
30
+					$this->eject();
31
+		}
32 32
 		
33 33
 		parent::__construct();
34 34
 	}
35 35
 
36
-	protected function get_initial_meta()
37
-	{
36
+	protected function get_initial_meta() {
38 37
 		$meta_array = array();
39 38
 		
40 39
 		$meta_array['title'] = "{$this->tag->name} | " . self::$WEBSITE_TITLE;
@@ -44,8 +43,7 @@  discard block
 block discarded – undo
44 43
 		return $meta_array;
45 44
 	}
46 45
 
47
-	protected function get_subsequent_meta()
48
-	{
46
+	protected function get_subsequent_meta() {
49 47
 		$meta_array = array();
50 48
 		
51 49
 		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count);
@@ -55,46 +53,38 @@  discard block
 block discarded – undo
55 53
 		return $meta_array;
56 54
 	}
57 55
 
58
-	private function get_keyword_array()
59
-	{
56
+	private function get_keyword_array() {
60 57
 		$keyword_array = self::$KEYWORD_ARRAY;
61 58
 		array_unshift($keyword_array, strtolower($this->tag->name));
62 59
 		return $keyword_array;
63 60
 	}
64 61
 
65
-	protected function get_initial_introduction()
66
-	{
62
+	protected function get_initial_introduction() {
67 63
 		return array(
68 64
 			'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->tag->name));
69 65
 	}
70 66
 
71
-	protected function get_subsequent_introduction()
72
-	{
67
+	protected function get_subsequent_introduction() {
73 68
 		return $this->get_initial_introduction();
74 69
 	}
75 70
 
76
-	protected function get_page_number_piece()
77
-	{
71
+	protected function get_page_number_piece() {
78 72
 		return URLDecode::getPiece(3);
79 73
 	}
80 74
 
81
-	protected function get_item_result($total, $offset)
82
-	{
75
+	protected function get_item_result($total, $offset) {
83 76
 		return LogTagCollector::getLogListForTag($this->tag->id, $total, $offset);
84 77
 	}
85 78
 
86
-	protected function get_item_count_result()
87
-	{
79
+	protected function get_item_count_result() {
88 80
 		return LogTagCollector::getLogCountForTag($this->tag->id);
89 81
 	}
90 82
 
91
-	protected function get_list_description_pattern()
92
-	{
83
+	protected function get_list_description_pattern() {
93 84
 		return str_replace('%TAG%', $this->tag->name, self::$NAVIGATION_DESCRIPTION);
94 85
 	}
95 86
 
96
-	protected function get_list_link_root()
97
-	{
87
+	protected function get_list_link_root() {
98 88
 		return sprintf(self::$LINK_ROOT, $this->tag->alias);
99 89
 	}
100 90
 
Please login to merge, or discard this patch.
controller/waterfalls/PeriodListController.class.inc.php 3 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 		$alias = URLDecode::getPiece(2);
27 27
 		$this->period = PeriodCollector::getByAlias($alias);
28 28
 		
29
-		if(!$this->period)
29
+		if (!$this->period)
30 30
 			$this->eject();
31 31
 		
32 32
 		parent::__construct();
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	{
37 37
 		$meta_array = array();
38 38
 		
39
-		$meta_array['title'] = "Hiking Stories - {$this->period->name} | " . self::$WEBSITE_TITLE;
39
+		$meta_array['title'] = "Hiking Stories - {$this->period->name} | ".self::$WEBSITE_TITLE;
40 40
 		$meta_array['description'] = $this->period->description;
41 41
 		$meta_array['keywords'] = $this->get_keyword_array();
42 42
 		
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	{
48 48
 		$meta_array = array();
49 49
 		
50
-		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->period->name, $this->page, $this->page_count);
50
+		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE.' | '.self::$WEBSITE_TITLE, $this->period->name, $this->page, $this->page_count);
51 51
 		$meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->period->name);
52 52
 		$meta_array['keywords'] = $this->get_keyword_array();
53 53
 		
Please login to merge, or discard this patch.
Indentation   +85 added lines, -85 removed lines patch added patch discarded remove patch
@@ -6,104 +6,104 @@
 block discarded – undo
6 6
 final class PeriodListController extends DefaultLogListController
7 7
 {
8 8
 
9
-	private static $DEFAULT_TITLE = '%s Hiking Stories, Page %d of %d';
10
-	private static $DEFAULT_DESCRIPTION = 'Page %d of %d of epic %s hiking stories written by Jacob Emerick, all about his adventures hunting waterfalls in the Upper Peninsula of Michigan';
11
-	private static $DEFAULT_HEADER = 'Page %d of Awesome %s Waterfall Hiking Stories';
9
+    private static $DEFAULT_TITLE = '%s Hiking Stories, Page %d of %d';
10
+    private static $DEFAULT_DESCRIPTION = 'Page %d of %d of epic %s hiking stories written by Jacob Emerick, all about his adventures hunting waterfalls in the Upper Peninsula of Michigan';
11
+    private static $DEFAULT_HEADER = 'Page %d of Awesome %s Waterfall Hiking Stories';
12 12
 
13
-	private static $KEYWORD_ARRAY = array(
14
-		'journal',
15
-		'stories',
16
-		'blog',
17
-		'waterfalls');
13
+    private static $KEYWORD_ARRAY = array(
14
+        'journal',
15
+        'stories',
16
+        'blog',
17
+        'waterfalls');
18 18
 
19
-	private static $NAVIGATION_DESCRIPTION = 'displaying %d ~ %d of %d %PERIOD% journal entries';
20
-	private static $LINK_ROOT = '/period/%s/';
19
+    private static $NAVIGATION_DESCRIPTION = 'displaying %d ~ %d of %d %PERIOD% journal entries';
20
+    private static $LINK_ROOT = '/period/%s/';
21 21
 
22
-	private $period;
22
+    private $period;
23 23
 
24
-	public function __construct()
25
-	{
26
-		$alias = URLDecode::getPiece(2);
27
-		$this->period = PeriodCollector::getByAlias($alias);
24
+    public function __construct()
25
+    {
26
+        $alias = URLDecode::getPiece(2);
27
+        $this->period = PeriodCollector::getByAlias($alias);
28 28
 		
29
-		if(!$this->period)
30
-			$this->eject();
29
+        if(!$this->period)
30
+            $this->eject();
31 31
 		
32
-		parent::__construct();
33
-	}
32
+        parent::__construct();
33
+    }
34 34
 
35
-	protected function get_initial_meta()
36
-	{
37
-		$meta_array = array();
35
+    protected function get_initial_meta()
36
+    {
37
+        $meta_array = array();
38 38
 		
39
-		$meta_array['title'] = "Hiking Stories - {$this->period->name} | " . self::$WEBSITE_TITLE;
40
-		$meta_array['description'] = $this->period->description;
41
-		$meta_array['keywords'] = $this->get_keyword_array();
39
+        $meta_array['title'] = "Hiking Stories - {$this->period->name} | " . self::$WEBSITE_TITLE;
40
+        $meta_array['description'] = $this->period->description;
41
+        $meta_array['keywords'] = $this->get_keyword_array();
42 42
 		
43
-		return $meta_array;
44
-	}
43
+        return $meta_array;
44
+    }
45 45
 
46
-	protected function get_subsequent_meta()
47
-	{
48
-		$meta_array = array();
46
+    protected function get_subsequent_meta()
47
+    {
48
+        $meta_array = array();
49 49
 		
50
-		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->period->name, $this->page, $this->page_count);
51
-		$meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->period->name);
52
-		$meta_array['keywords'] = $this->get_keyword_array();
50
+        $meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->period->name, $this->page, $this->page_count);
51
+        $meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->period->name);
52
+        $meta_array['keywords'] = $this->get_keyword_array();
53 53
 		
54
-		return $meta_array;
55
-	}
56
-
57
-	private function get_keyword_array()
58
-	{
59
-		$keyword_array = self::$KEYWORD_ARRAY;
60
-		array_unshift($keyword_array, strtolower($this->period->name));
61
-		return $keyword_array;
62
-	}
63
-
64
-	protected function get_initial_introduction()
65
-	{
66
-		$introduction = array();
54
+        return $meta_array;
55
+    }
56
+
57
+    private function get_keyword_array()
58
+    {
59
+        $keyword_array = self::$KEYWORD_ARRAY;
60
+        array_unshift($keyword_array, strtolower($this->period->name));
61
+        return $keyword_array;
62
+    }
63
+
64
+    protected function get_initial_introduction()
65
+    {
66
+        $introduction = array();
67 67
 		
68
-		$introduction['title'] = $this->period->title;
69
-		$introduction['description'] = Content::instance('FixInternalLink', $this->period->introduction)->activate();
70
-		$introduction['image'] = $this->get_image_element($this->period->photo_category, $this->period->photo, $this->period->photo_description, 'medium');
68
+        $introduction['title'] = $this->period->title;
69
+        $introduction['description'] = Content::instance('FixInternalLink', $this->period->introduction)->activate();
70
+        $introduction['image'] = $this->get_image_element($this->period->photo_category, $this->period->photo, $this->period->photo_description, 'medium');
71 71
 		
72
-		return $introduction;
73
-	}
74
-
75
-	protected function get_subsequent_introduction()
76
-	{
77
-		return array(
78
-			'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->period->name));
79
-	}
80
-
81
-	protected function get_page_number_piece()
82
-	{
83
-		return URLDecode::getPiece(3);
84
-	}
85
-
86
-	protected function get_item_result($total, $offset)
87
-	{
88
-		return PeriodCollector::getLogListForPeriod($this->period->id, $total, $offset);
89
-	}
90
-
91
-	protected function get_item_count_result()
92
-	{
93
-		return PeriodCollector::getLogCountForPeriod($this->period->id);
94
-	}
95
-
96
-	protected function get_list_description_pattern()
97
-	{
98
-		$period = $this->period->name;
99
-		$period = strtolower($period);
100
-		$navigation_description = str_replace('%PERIOD%', $period, self::$NAVIGATION_DESCRIPTION);
101
-		return $navigation_description;
102
-	}
103
-
104
-	protected function get_list_link_root()
105
-	{
106
-		return sprintf(self::$LINK_ROOT, $this->period->alias);
107
-	}
72
+        return $introduction;
73
+    }
74
+
75
+    protected function get_subsequent_introduction()
76
+    {
77
+        return array(
78
+            'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->period->name));
79
+    }
80
+
81
+    protected function get_page_number_piece()
82
+    {
83
+        return URLDecode::getPiece(3);
84
+    }
85
+
86
+    protected function get_item_result($total, $offset)
87
+    {
88
+        return PeriodCollector::getLogListForPeriod($this->period->id, $total, $offset);
89
+    }
90
+
91
+    protected function get_item_count_result()
92
+    {
93
+        return PeriodCollector::getLogCountForPeriod($this->period->id);
94
+    }
95
+
96
+    protected function get_list_description_pattern()
97
+    {
98
+        $period = $this->period->name;
99
+        $period = strtolower($period);
100
+        $navigation_description = str_replace('%PERIOD%', $period, self::$NAVIGATION_DESCRIPTION);
101
+        return $navigation_description;
102
+    }
103
+
104
+    protected function get_list_link_root()
105
+    {
106
+        return sprintf(self::$LINK_ROOT, $this->period->alias);
107
+    }
108 108
 
109 109
 }
110 110
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +16 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/PeriodCollector');
4 4
 Loader::load('controller', 'waterfalls/DefaultLogListController');
5 5
 
6
-final class PeriodListController extends DefaultLogListController
7
-{
6
+final class PeriodListController extends DefaultLogListController
7
+{
8 8
 
9 9
 	private static $DEFAULT_TITLE = '%s Hiking Stories, Page %d of %d';
10 10
 	private static $DEFAULT_DESCRIPTION = 'Page %d of %d of epic %s hiking stories written by Jacob Emerick, all about his adventures hunting waterfalls in the Upper Peninsula of Michigan';
@@ -21,19 +21,18 @@  discard block
 block discarded – undo
21 21
 
22 22
 	private $period;
23 23
 
24
-	public function __construct()
25
-	{
24
+	public function __construct() {
26 25
 		$alias = URLDecode::getPiece(2);
27 26
 		$this->period = PeriodCollector::getByAlias($alias);
28 27
 		
29
-		if(!$this->period)
30
-			$this->eject();
28
+		if(!$this->period) {
29
+					$this->eject();
30
+		}
31 31
 		
32 32
 		parent::__construct();
33 33
 	}
34 34
 
35
-	protected function get_initial_meta()
36
-	{
35
+	protected function get_initial_meta() {
37 36
 		$meta_array = array();
38 37
 		
39 38
 		$meta_array['title'] = "Hiking Stories - {$this->period->name} | " . self::$WEBSITE_TITLE;
@@ -43,8 +42,7 @@  discard block
 block discarded – undo
43 42
 		return $meta_array;
44 43
 	}
45 44
 
46
-	protected function get_subsequent_meta()
47
-	{
45
+	protected function get_subsequent_meta() {
48 46
 		$meta_array = array();
49 47
 		
50 48
 		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->period->name, $this->page, $this->page_count);
@@ -54,15 +52,13 @@  discard block
 block discarded – undo
54 52
 		return $meta_array;
55 53
 	}
56 54
 
57
-	private function get_keyword_array()
58
-	{
55
+	private function get_keyword_array() {
59 56
 		$keyword_array = self::$KEYWORD_ARRAY;
60 57
 		array_unshift($keyword_array, strtolower($this->period->name));
61 58
 		return $keyword_array;
62 59
 	}
63 60
 
64
-	protected function get_initial_introduction()
65
-	{
61
+	protected function get_initial_introduction() {
66 62
 		$introduction = array();
67 63
 		
68 64
 		$introduction['title'] = $this->period->title;
@@ -72,37 +68,31 @@  discard block
 block discarded – undo
72 68
 		return $introduction;
73 69
 	}
74 70
 
75
-	protected function get_subsequent_introduction()
76
-	{
71
+	protected function get_subsequent_introduction() {
77 72
 		return array(
78 73
 			'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->period->name));
79 74
 	}
80 75
 
81
-	protected function get_page_number_piece()
82
-	{
76
+	protected function get_page_number_piece() {
83 77
 		return URLDecode::getPiece(3);
84 78
 	}
85 79
 
86
-	protected function get_item_result($total, $offset)
87
-	{
80
+	protected function get_item_result($total, $offset) {
88 81
 		return PeriodCollector::getLogListForPeriod($this->period->id, $total, $offset);
89 82
 	}
90 83
 
91
-	protected function get_item_count_result()
92
-	{
84
+	protected function get_item_count_result() {
93 85
 		return PeriodCollector::getLogCountForPeriod($this->period->id);
94 86
 	}
95 87
 
96
-	protected function get_list_description_pattern()
97
-	{
88
+	protected function get_list_description_pattern() {
98 89
 		$period = $this->period->name;
99 90
 		$period = strtolower($period);
100 91
 		$navigation_description = str_replace('%PERIOD%', $period, self::$NAVIGATION_DESCRIPTION);
101 92
 		return $navigation_description;
102 93
 	}
103 94
 
104
-	protected function get_list_link_root()
105
-	{
95
+	protected function get_list_link_root() {
106 96
 		return sprintf(self::$LINK_ROOT, $this->period->alias);
107 97
 	}
108 98
 
Please login to merge, or discard this patch.
controller/waterfalls/CompanionListController.class.inc.php 3 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 		$alias = URLDecode::getPiece(2);
28 28
 		$this->companion = CompanionCollector::getByAlias($alias);
29 29
 		
30
-		if(!$this->companion)
30
+		if (!$this->companion)
31 31
 			$this->eject();
32 32
 		
33 33
 		parent::__construct();
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	{
38 38
 		$meta_array = array();
39 39
 		
40
-		$meta_array['title'] = "Hiking Stories with {$this->companion->name} | " . self::$WEBSITE_TITLE;
40
+		$meta_array['title'] = "Hiking Stories with {$this->companion->name} | ".self::$WEBSITE_TITLE;
41 41
 		$meta_array['description'] = $this->companion->description;
42 42
 		$meta_array['keywords'] = $this->get_keyword_array();
43 43
 		
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	{
49 49
 		$meta_array = array();
50 50
 		
51
-		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count);
51
+		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE.' | '.self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count);
52 52
 		$meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->companion->name);
53 53
 		$meta_array['keywords'] = $this->get_keyword_array();
54 54
 		
Please login to merge, or discard this patch.
Indentation   +87 added lines, -87 removed lines patch added patch discarded remove patch
@@ -6,102 +6,102 @@
 block discarded – undo
6 6
 final class CompanionListController extends DefaultLogListController
7 7
 {
8 8
 
9
-	private static $DEFAULT_TITLE = 'Hiking with %s, Page %d of %d';
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';
11
-	private static $DEFAULT_HEADER = 'Page %d of Legendary Hiking Stories with %s';
12
-
13
-	private static $KEYWORD_ARRAY = array(
14
-		'hiking companions',
15
-		'journal',
16
-		'stories',
17
-		'blog',
18
-		'waterfalls');
19
-
20
-	private static $NAVIGATION_DESCRIPTION = 'displaying %d ~ %d of %d journal entries with %COMPANION%';
21
-	private static $LINK_ROOT = '/companion/%s/';
22
-
23
-	private $companion;
24
-
25
-	public function __construct()
26
-	{
27
-		$alias = URLDecode::getPiece(2);
28
-		$this->companion = CompanionCollector::getByAlias($alias);
9
+    private static $DEFAULT_TITLE = 'Hiking with %s, Page %d of %d';
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';
11
+    private static $DEFAULT_HEADER = 'Page %d of Legendary Hiking Stories with %s';
12
+
13
+    private static $KEYWORD_ARRAY = array(
14
+        'hiking companions',
15
+        'journal',
16
+        'stories',
17
+        'blog',
18
+        'waterfalls');
19
+
20
+    private static $NAVIGATION_DESCRIPTION = 'displaying %d ~ %d of %d journal entries with %COMPANION%';
21
+    private static $LINK_ROOT = '/companion/%s/';
22
+
23
+    private $companion;
24
+
25
+    public function __construct()
26
+    {
27
+        $alias = URLDecode::getPiece(2);
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
-		parent::__construct();
34
-	}
33
+        parent::__construct();
34
+    }
35 35
 
36
-	protected function get_initial_meta()
37
-	{
38
-		$meta_array = array();
36
+    protected function get_initial_meta()
37
+    {
38
+        $meta_array = array();
39 39
 		
40
-		$meta_array['title'] = "Hiking Stories with {$this->companion->name} | " . self::$WEBSITE_TITLE;
41
-		$meta_array['description'] = $this->companion->description;
42
-		$meta_array['keywords'] = $this->get_keyword_array();
40
+        $meta_array['title'] = "Hiking Stories with {$this->companion->name} | " . self::$WEBSITE_TITLE;
41
+        $meta_array['description'] = $this->companion->description;
42
+        $meta_array['keywords'] = $this->get_keyword_array();
43 43
 		
44
-		return $meta_array;
45
-	}
44
+        return $meta_array;
45
+    }
46 46
 
47
-	protected function get_subsequent_meta()
48
-	{
49
-		$meta_array = array();
47
+    protected function get_subsequent_meta()
48
+    {
49
+        $meta_array = array();
50 50
 		
51
-		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count);
52
-		$meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->companion->name);
53
-		$meta_array['keywords'] = $this->get_keyword_array();
51
+        $meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count);
52
+        $meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->companion->name);
53
+        $meta_array['keywords'] = $this->get_keyword_array();
54 54
 		
55
-		return $meta_array;
56
-	}
57
-
58
-	private function get_keyword_array()
59
-	{
60
-		$keyword_array = self::$KEYWORD_ARRAY;
61
-		array_unshift($keyword_array, strtolower($this->companion->name));
62
-		return $keyword_array;
63
-	}
64
-
65
-	protected function get_initial_introduction()
66
-	{
67
-		$introduction = array();
55
+        return $meta_array;
56
+    }
57
+
58
+    private function get_keyword_array()
59
+    {
60
+        $keyword_array = self::$KEYWORD_ARRAY;
61
+        array_unshift($keyword_array, strtolower($this->companion->name));
62
+        return $keyword_array;
63
+    }
64
+
65
+    protected function get_initial_introduction()
66
+    {
67
+        $introduction = array();
68 68
 		
69
-		$introduction['title'] = $this->companion->title;
70
-		$introduction['description'] = Content::instance('FixInternalLink', $this->companion->introduction)->activate();
71
-		$introduction['image'] = $this->get_image_element($this->companion->photo_category, $this->companion->photo, $this->companion->photo_description, 'medium');
69
+        $introduction['title'] = $this->companion->title;
70
+        $introduction['description'] = Content::instance('FixInternalLink', $this->companion->introduction)->activate();
71
+        $introduction['image'] = $this->get_image_element($this->companion->photo_category, $this->companion->photo, $this->companion->photo_description, 'medium');
72 72
 		
73
-		return $introduction;
74
-	}
75
-
76
-	protected function get_subsequent_introduction()
77
-	{
78
-		return array(
79
-			'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->companion->name));
80
-	}
81
-
82
-	protected function get_page_number_piece()
83
-	{
84
-		return URLDecode::getPiece(3);
85
-	}
86
-
87
-	protected function get_item_result($total, $offset)
88
-	{
89
-		return CompanionCollector::getLogListForCompanion($this->companion->id, $total, $offset);
90
-	}
91
-
92
-	protected function get_item_count_result()
93
-	{
94
-		return CompanionCollector::getLogCountForCompanion($this->companion->id);
95
-	}
96
-
97
-	protected function get_list_description_pattern()
98
-	{
99
-		return str_replace('%COMPANION%', $this->companion->name, self::$NAVIGATION_DESCRIPTION);
100
-	}
101
-
102
-	protected function get_list_link_root()
103
-	{
104
-		return sprintf(self::$LINK_ROOT, $this->companion->alias);
105
-	}
73
+        return $introduction;
74
+    }
75
+
76
+    protected function get_subsequent_introduction()
77
+    {
78
+        return array(
79
+            'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->companion->name));
80
+    }
81
+
82
+    protected function get_page_number_piece()
83
+    {
84
+        return URLDecode::getPiece(3);
85
+    }
86
+
87
+    protected function get_item_result($total, $offset)
88
+    {
89
+        return CompanionCollector::getLogListForCompanion($this->companion->id, $total, $offset);
90
+    }
91
+
92
+    protected function get_item_count_result()
93
+    {
94
+        return CompanionCollector::getLogCountForCompanion($this->companion->id);
95
+    }
96
+
97
+    protected function get_list_description_pattern()
98
+    {
99
+        return str_replace('%COMPANION%', $this->companion->name, self::$NAVIGATION_DESCRIPTION);
100
+    }
101
+
102
+    protected function get_list_link_root()
103
+    {
104
+        return sprintf(self::$LINK_ROOT, $this->companion->alias);
105
+    }
106 106
 
107 107
 }
108 108
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +16 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,18 @@  discard block
 block discarded – undo
22 22
 
23 23
 	private $companion;
24 24
 
25
-	public function __construct()
26
-	{
25
+	public function __construct() {
27 26
 		$alias = URLDecode::getPiece(2);
28 27
 		$this->companion = CompanionCollector::getByAlias($alias);
29 28
 		
30
-		if(!$this->companion)
31
-			$this->eject();
29
+		if(!$this->companion) {
30
+					$this->eject();
31
+		}
32 32
 		
33 33
 		parent::__construct();
34 34
 	}
35 35
 
36
-	protected function get_initial_meta()
37
-	{
36
+	protected function get_initial_meta() {
38 37
 		$meta_array = array();
39 38
 		
40 39
 		$meta_array['title'] = "Hiking Stories with {$this->companion->name} | " . self::$WEBSITE_TITLE;
@@ -44,8 +43,7 @@  discard block
 block discarded – undo
44 43
 		return $meta_array;
45 44
 	}
46 45
 
47
-	protected function get_subsequent_meta()
48
-	{
46
+	protected function get_subsequent_meta() {
49 47
 		$meta_array = array();
50 48
 		
51 49
 		$meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count);
@@ -55,15 +53,13 @@  discard block
 block discarded – undo
55 53
 		return $meta_array;
56 54
 	}
57 55
 
58
-	private function get_keyword_array()
59
-	{
56
+	private function get_keyword_array() {
60 57
 		$keyword_array = self::$KEYWORD_ARRAY;
61 58
 		array_unshift($keyword_array, strtolower($this->companion->name));
62 59
 		return $keyword_array;
63 60
 	}
64 61
 
65
-	protected function get_initial_introduction()
66
-	{
62
+	protected function get_initial_introduction() {
67 63
 		$introduction = array();
68 64
 		
69 65
 		$introduction['title'] = $this->companion->title;
@@ -73,34 +69,28 @@  discard block
 block discarded – undo
73 69
 		return $introduction;
74 70
 	}
75 71
 
76
-	protected function get_subsequent_introduction()
77
-	{
72
+	protected function get_subsequent_introduction() {
78 73
 		return array(
79 74
 			'title' => sprintf(self::$DEFAULT_HEADER, $this->page, $this->companion->name));
80 75
 	}
81 76
 
82
-	protected function get_page_number_piece()
83
-	{
77
+	protected function get_page_number_piece() {
84 78
 		return URLDecode::getPiece(3);
85 79
 	}
86 80
 
87
-	protected function get_item_result($total, $offset)
88
-	{
81
+	protected function get_item_result($total, $offset) {
89 82
 		return CompanionCollector::getLogListForCompanion($this->companion->id, $total, $offset);
90 83
 	}
91 84
 
92
-	protected function get_item_count_result()
93
-	{
85
+	protected function get_item_count_result() {
94 86
 		return CompanionCollector::getLogCountForCompanion($this->companion->id);
95 87
 	}
96 88
 
97
-	protected function get_list_description_pattern()
98
-	{
89
+	protected function get_list_description_pattern() {
99 90
 		return str_replace('%COMPANION%', $this->companion->name, self::$NAVIGATION_DESCRIPTION);
100 91
 	}
101 92
 
102
-	protected function get_list_link_root()
103
-	{
93
+	protected function get_list_link_root() {
104 94
 		return sprintf(self::$LINK_ROOT, $this->companion->alias);
105 95
 	}
106 96
 
Please login to merge, or discard this patch.
controller/waterfalls/HomeController.class.inc.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $recent_comments = CommentCollector::getRecentWaterfallComments();
60 60
         
61 61
         $recent_comment_container = array();
62
-        foreach($recent_comments as $comment) {
62
+        foreach ($recent_comments as $comment) {
63 63
             $body = $comment->body;
64 64
             $body = strip_tags($body);
65 65
             
@@ -67,10 +67,10 @@  discard block
 block discarded – undo
67 67
             $comment_obj->description = Content::instance('SmartTrim', $body)->activate(50);
68 68
             $comment_obj->commenter = $comment->name;
69 69
             if (!empty($comment->log_path)) {
70
-                $comment_obj->link = Loader::getRootURL() . "{$comment->log_path}/#comment-{$comment->id}";
70
+                $comment_obj->link = Loader::getRootURL()."{$comment->log_path}/#comment-{$comment->id}";
71 71
                 $comment_obj->location = $comment->log_title;
72 72
             } else {
73
-                $comment_obj->link = Loader::getRootURL() . "{$comment->waterfall_path}/#comment-{$comment->id}";
73
+                $comment_obj->link = Loader::getRootURL()."{$comment->waterfall_path}/#comment-{$comment->id}";
74 74
                 $comment_obj->location = $comment->waterfall_title;
75 75
             }
76 76
             
Please login to merge, or discard this patch.
Braces   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@  discard block
 block discarded – undo
7 7
 ));
8 8
 Loader::load('controller', 'waterfalls/DefaultPageController');
9 9
 
10
-final class HomeController extends DefaultPageController
11
-{
10
+final class HomeController extends DefaultPageController
11
+{
12 12
 
13 13
     private static $TITLE = 'Waterfalls of the Keweenaw | Stories and Tips from Jacob Emerick';
14 14
     private static $DESCRIPTION = 'Stories, maps, and details about many of the waterfalls in the Upper Peninsula of Michigan, compiled by Jacob Emerick.';
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
     private static $BANNER_IMAGE = 2661;
23 23
 
24
-    protected function set_head_data()
25
-    {
24
+    protected function set_head_data() {
26 25
         parent::set_head_data();
27 26
         
28 27
         $this->set_title(self::$TITLE);
@@ -30,8 +29,7 @@  discard block
 block discarded – undo
30 29
         $this->set_keywords(self::$KEYWORD_ARRAY);
31 30
     }
32 31
 
33
-    protected function set_body_data($page_type = 'wide')
34
-    {
32
+    protected function set_body_data($page_type = 'wide') {
35 33
         parent::set_body_data($page_type);
36 34
         
37 35
         $photo = PhotoCollector::getRow(self::$BANNER_IMAGE);
Please login to merge, or discard this patch.
controller/waterfalls/WaterfallListController.class.inc.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	{
33 33
 		$meta_array = array();
34 34
 		
35
-		$meta_array['title'] = self::$PRIMARY_TITLE . ' | ' . self::$WEBSITE_TITLE;
35
+		$meta_array['title'] = self::$PRIMARY_TITLE.' | '.self::$WEBSITE_TITLE;
36 36
 		$meta_array['description'] = self::$PRIMARY_DESCRIPTION;
37 37
 		$meta_array['keywords'] = self::$KEYWORD_ARRAY;
38 38
 		
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	{
44 44
 		$meta_array = array();
45 45
 		
46
-		$meta_array['title'] = sprintf(self::$SECONDARY_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->page, $this->page_count);
46
+		$meta_array['title'] = sprintf(self::$SECONDARY_TITLE.' | '.self::$WEBSITE_TITLE, $this->page, $this->page_count);
47 47
 		$meta_array['description'] = sprintf(self::$SECONDARY_DESCRIPTION, $this->page, $this->page_count);
48 48
 		$meta_array['keywords'] = self::$KEYWORD_ARRAY;
49 49
 		
Please login to merge, or discard this patch.
Indentation   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -1,97 +1,97 @@
 block discarded – undo
1 1
 <?
2 2
 
3 3
 Loader::load('collector', array(
4
-	'image/PhotoCollector',
5
-	'waterfall/WaterfallCollector'));
4
+    'image/PhotoCollector',
5
+    'waterfall/WaterfallCollector'));
6 6
 Loader::load('controller', 'waterfalls/DefaultWaterfallListController');
7 7
 
8 8
 final class WaterfallListController extends DefaultWaterfallListController
9 9
 {
10 10
 
11
-	private static $PRIMARY_TITLE = 'Full Listing of Falls';
12
-	private static $PRIMARY_DESCRIPTION = 'List of waterfalls found in the general Keweenaw Area, complete with photos, descriptions, directions, and maps.';
13
-	private static $PRIMARY_INTRODUCTION_HEADER = 'A Giant List of Waterfalls';
14
-	private static $PRIMARY_INTRODUCTION_IMAGE = 2212;
15
-	private static $PRIMARY_INTRODUCTION_DESCRIPTION = "Jacob has been to a lot of waterfalls. From the sandstone drops of Ontonagon to the volcanic plunges of the Huron Mountains to Keweenaw Ridge's craggy slides, he's gotten around. Some of the falls end up being surprising finds, numerous drops that are not documented anywhere else, while others end up being huge disappointments that barely warrant the long searches and planning stages.";
16
-
17
-	private static $SECONDARY_TITLE = 'Falls Listing, Page %d of %d';
18
-	private static $SECONDARY_DESCRIPTION = 'Page %d of %d of waterfalls found in the general Keweenaw area.';
19
-	private static $SECONDARY_INTRODUCTION_HEADER = 'Page %d of %d of the full waterfall listing';
20
-
21
-	private static $KEYWORD_ARRAY = array(
22
-		'journal',
23
-		'stories',
24
-		'blog',
25
-		'waterfalls',
26
-		'hiking companions');
27
-
28
-	private static $NAVIGATION_DESCRIPTION = 'displaying %d ~ %d of %d total waterfalls';
29
-	private static $LINK_ROOT = '/falls/';
30
-
31
-	protected function get_initial_meta()
32
-	{
33
-		$meta_array = array();
11
+    private static $PRIMARY_TITLE = 'Full Listing of Falls';
12
+    private static $PRIMARY_DESCRIPTION = 'List of waterfalls found in the general Keweenaw Area, complete with photos, descriptions, directions, and maps.';
13
+    private static $PRIMARY_INTRODUCTION_HEADER = 'A Giant List of Waterfalls';
14
+    private static $PRIMARY_INTRODUCTION_IMAGE = 2212;
15
+    private static $PRIMARY_INTRODUCTION_DESCRIPTION = "Jacob has been to a lot of waterfalls. From the sandstone drops of Ontonagon to the volcanic plunges of the Huron Mountains to Keweenaw Ridge's craggy slides, he's gotten around. Some of the falls end up being surprising finds, numerous drops that are not documented anywhere else, while others end up being huge disappointments that barely warrant the long searches and planning stages.";
16
+
17
+    private static $SECONDARY_TITLE = 'Falls Listing, Page %d of %d';
18
+    private static $SECONDARY_DESCRIPTION = 'Page %d of %d of waterfalls found in the general Keweenaw area.';
19
+    private static $SECONDARY_INTRODUCTION_HEADER = 'Page %d of %d of the full waterfall listing';
20
+
21
+    private static $KEYWORD_ARRAY = array(
22
+        'journal',
23
+        'stories',
24
+        'blog',
25
+        'waterfalls',
26
+        'hiking companions');
27
+
28
+    private static $NAVIGATION_DESCRIPTION = 'displaying %d ~ %d of %d total waterfalls';
29
+    private static $LINK_ROOT = '/falls/';
30
+
31
+    protected function get_initial_meta()
32
+    {
33
+        $meta_array = array();
34 34
 		
35
-		$meta_array['title'] = self::$PRIMARY_TITLE . ' | ' . self::$WEBSITE_TITLE;
36
-		$meta_array['description'] = self::$PRIMARY_DESCRIPTION;
37
-		$meta_array['keywords'] = self::$KEYWORD_ARRAY;
35
+        $meta_array['title'] = self::$PRIMARY_TITLE . ' | ' . self::$WEBSITE_TITLE;
36
+        $meta_array['description'] = self::$PRIMARY_DESCRIPTION;
37
+        $meta_array['keywords'] = self::$KEYWORD_ARRAY;
38 38
 		
39
-		return $meta_array;
40
-	}
39
+        return $meta_array;
40
+    }
41 41
 
42
-	protected function get_subsequent_meta()
43
-	{
44
-		$meta_array = array();
42
+    protected function get_subsequent_meta()
43
+    {
44
+        $meta_array = array();
45 45
 		
46
-		$meta_array['title'] = sprintf(self::$SECONDARY_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->page, $this->page_count);
47
-		$meta_array['description'] = sprintf(self::$SECONDARY_DESCRIPTION, $this->page, $this->page_count);
48
-		$meta_array['keywords'] = self::$KEYWORD_ARRAY;
46
+        $meta_array['title'] = sprintf(self::$SECONDARY_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->page, $this->page_count);
47
+        $meta_array['description'] = sprintf(self::$SECONDARY_DESCRIPTION, $this->page, $this->page_count);
48
+        $meta_array['keywords'] = self::$KEYWORD_ARRAY;
49 49
 		
50
-		return $meta_array;
51
-	}
50
+        return $meta_array;
51
+    }
52 52
 
53
-	protected function get_initial_introduction()
54
-	{
55
-		$introduction = array();
53
+    protected function get_initial_introduction()
54
+    {
55
+        $introduction = array();
56 56
 		
57
-		$introduction['title'] = self::$PRIMARY_INTRODUCTION_HEADER;
58
-		$introduction['description'] = self::$PRIMARY_INTRODUCTION_DESCRIPTION;
57
+        $introduction['title'] = self::$PRIMARY_INTRODUCTION_HEADER;
58
+        $introduction['description'] = self::$PRIMARY_INTRODUCTION_DESCRIPTION;
59 59
 		
60
-		$image = PhotoCollector::getRow(self::$PRIMARY_INTRODUCTION_IMAGE);
61
-		$introduction['image'] = $this->get_image_element($image->category, $image->name, $image->description, 'medium');
60
+        $image = PhotoCollector::getRow(self::$PRIMARY_INTRODUCTION_IMAGE);
61
+        $introduction['image'] = $this->get_image_element($image->category, $image->name, $image->description, 'medium');
62 62
 		
63
-		return $introduction;
64
-	}
65
-
66
-	protected function get_subsequent_introduction()
67
-	{
68
-		return array(
69
-			'title' => sprintf(self::$SECONDARY_INTRODUCTION_HEADER, $this->page, $this->page_count));
70
-	}
71
-
72
-	protected function get_page_number_piece()
73
-	{
74
-		return URLDecode::getPiece(2);
75
-	}
76
-
77
-	protected function get_item_result($total, $offset)
78
-	{
79
-		return WaterfallCollector::getList($total, $offset);
80
-	}
81
-
82
-	protected function get_item_count_result()
83
-	{
84
-		return WaterfallCollector::getListCount();
85
-	}
86
-
87
-	protected function get_list_description_pattern()
88
-	{
89
-		return self::$NAVIGATION_DESCRIPTION;
90
-	}
91
-
92
-	protected function get_list_link_root()
93
-	{
94
-		return self::$LINK_ROOT;
95
-	}
63
+        return $introduction;
64
+    }
65
+
66
+    protected function get_subsequent_introduction()
67
+    {
68
+        return array(
69
+            'title' => sprintf(self::$SECONDARY_INTRODUCTION_HEADER, $this->page, $this->page_count));
70
+    }
71
+
72
+    protected function get_page_number_piece()
73
+    {
74
+        return URLDecode::getPiece(2);
75
+    }
76
+
77
+    protected function get_item_result($total, $offset)
78
+    {
79
+        return WaterfallCollector::getList($total, $offset);
80
+    }
81
+
82
+    protected function get_item_count_result()
83
+    {
84
+        return WaterfallCollector::getListCount();
85
+    }
86
+
87
+    protected function get_list_description_pattern()
88
+    {
89
+        return self::$NAVIGATION_DESCRIPTION;
90
+    }
91
+
92
+    protected function get_list_link_root()
93
+    {
94
+        return self::$LINK_ROOT;
95
+    }
96 96
 
97 97
 }
Please login to merge, or discard this patch.
Braces   +11 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,7 @@  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() {
33 32
 		$meta_array = array();
34 33
 		
35 34
 		$meta_array['title'] = self::$PRIMARY_TITLE . ' | ' . self::$WEBSITE_TITLE;
@@ -39,8 +38,7 @@  discard block
 block discarded – undo
39 38
 		return $meta_array;
40 39
 	}
41 40
 
42
-	protected function get_subsequent_meta()
43
-	{
41
+	protected function get_subsequent_meta() {
44 42
 		$meta_array = array();
45 43
 		
46 44
 		$meta_array['title'] = sprintf(self::$SECONDARY_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->page, $this->page_count);
@@ -50,8 +48,7 @@  discard block
 block discarded – undo
50 48
 		return $meta_array;
51 49
 	}
52 50
 
53
-	protected function get_initial_introduction()
54
-	{
51
+	protected function get_initial_introduction() {
55 52
 		$introduction = array();
56 53
 		
57 54
 		$introduction['title'] = self::$PRIMARY_INTRODUCTION_HEADER;
@@ -63,34 +60,28 @@  discard block
 block discarded – undo
63 60
 		return $introduction;
64 61
 	}
65 62
 
66
-	protected function get_subsequent_introduction()
67
-	{
63
+	protected function get_subsequent_introduction() {
68 64
 		return array(
69 65
 			'title' => sprintf(self::$SECONDARY_INTRODUCTION_HEADER, $this->page, $this->page_count));
70 66
 	}
71 67
 
72
-	protected function get_page_number_piece()
73
-	{
68
+	protected function get_page_number_piece() {
74 69
 		return URLDecode::getPiece(2);
75 70
 	}
76 71
 
77
-	protected function get_item_result($total, $offset)
78
-	{
72
+	protected function get_item_result($total, $offset) {
79 73
 		return WaterfallCollector::getList($total, $offset);
80 74
 	}
81 75
 
82
-	protected function get_item_count_result()
83
-	{
76
+	protected function get_item_count_result() {
84 77
 		return WaterfallCollector::getListCount();
85 78
 	}
86 79
 
87
-	protected function get_list_description_pattern()
88
-	{
80
+	protected function get_list_description_pattern() {
89 81
 		return self::$NAVIGATION_DESCRIPTION;
90 82
 	}
91 83
 
92
-	protected function get_list_link_root()
93
-	{
84
+	protected function get_list_link_root() {
94 85
 		return self::$LINK_ROOT;
95 86
 	}
96 87
 
Please login to merge, or discard this patch.
controller/waterfalls/LogListController.class.inc.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	{
33 33
 		$meta_array = array();
34 34
 		
35
-		$meta_array['title'] = self::$PRIMARY_TITLE . ' | ' . self::$WEBSITE_TITLE;
35
+		$meta_array['title'] = self::$PRIMARY_TITLE.' | '.self::$WEBSITE_TITLE;
36 36
 		$meta_array['description'] = self::$PRIMARY_DESCRIPTION;
37 37
 		$meta_array['keywords'] = self::$KEYWORD_ARRAY;
38 38
 		
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	{
44 44
 		$meta_array = array();
45 45
 		
46
-		$meta_array['title'] = sprintf(self::$SECONDARY_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->page);
46
+		$meta_array['title'] = sprintf(self::$SECONDARY_TITLE.' | '.self::$WEBSITE_TITLE, $this->page);
47 47
 		$meta_array['description'] = sprintf(self::$SECONDARY_DESCRIPTION, $this->page, $this->page_count);
48 48
 		$meta_array['keywords'] = self::$KEYWORD_ARRAY;
49 49
 		
Please login to merge, or discard this patch.
Indentation   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -1,97 +1,97 @@
 block discarded – undo
1 1
 <?
2 2
 
3 3
 Loader::load('collector', array(
4
-	'image/PhotoCollector',
5
-	'waterfall/LogCollector'));
4
+    'image/PhotoCollector',
5
+    'waterfall/LogCollector'));
6 6
 Loader::load('controller', 'waterfalls/DefaultLogListController');
7 7
 
8 8
 final class LogListController extends DefaultLogListController
9 9
 {
10 10
 
11
-	private static $PRIMARY_TITLE = 'Journal from Waterfall Hikes';
12
-	private static $PRIMARY_DESCRIPTION = 'Stories written by Jacob Emerick about his epic waterfall adventures in the general Keweenaw, Ontonagon, and Marquette areas.';
13
-	private static $PRIMARY_INTRODUCTION_HEADER = 'Journal of Waterfall Adventuring';
14
-	private static $PRIMARY_INTRODUCTION_IMAGE = 707;
15
-	private static $PRIMARY_INTRODUCTION_DESCRIPTION = 'Whether he is hiking alone through the woods, with Logan running ahead to chase down deer, or with a group of friends, every hike that Jacob sets out turns into an adventure. Hopping from slick rock to rock along a small creek in the city, splashing through deep water over an uncertain riverbed, or pushing thick branches out of the way in thick brush, every journey turns into a little story of discovery.';
16
-
17
-	private static $SECONDARY_TITLE = 'Journal Entries - Page %d';
18
-	private static $SECONDARY_DESCRIPTION = 'Page %d of %d of epic hiking stories written by Jacob Emerick, all about his adventures hunting waterfalls in the Upper Peninsula of Michigan';
19
-	private static $SECONDARY_INTRODUCTION_HEADER = 'Waterfall Adventure Journal, Page %d of %d';
20
-
21
-	private static $KEYWORD_ARRAY = array(
22
-		'journal',
23
-		'travel log',
24
-		'blog',
25
-		'waterfalls',
26
-		'hiking companions');
27
-
28
-	private static $NAVIGATION_DESCRIPTION = 'displaying %d ~ %d of %d total journal entries';
29
-	private static $LINK_ROOT = '/journal/';
30
-
31
-	protected function get_initial_meta()
32
-	{
33
-		$meta_array = array();
11
+    private static $PRIMARY_TITLE = 'Journal from Waterfall Hikes';
12
+    private static $PRIMARY_DESCRIPTION = 'Stories written by Jacob Emerick about his epic waterfall adventures in the general Keweenaw, Ontonagon, and Marquette areas.';
13
+    private static $PRIMARY_INTRODUCTION_HEADER = 'Journal of Waterfall Adventuring';
14
+    private static $PRIMARY_INTRODUCTION_IMAGE = 707;
15
+    private static $PRIMARY_INTRODUCTION_DESCRIPTION = 'Whether he is hiking alone through the woods, with Logan running ahead to chase down deer, or with a group of friends, every hike that Jacob sets out turns into an adventure. Hopping from slick rock to rock along a small creek in the city, splashing through deep water over an uncertain riverbed, or pushing thick branches out of the way in thick brush, every journey turns into a little story of discovery.';
16
+
17
+    private static $SECONDARY_TITLE = 'Journal Entries - Page %d';
18
+    private static $SECONDARY_DESCRIPTION = 'Page %d of %d of epic hiking stories written by Jacob Emerick, all about his adventures hunting waterfalls in the Upper Peninsula of Michigan';
19
+    private static $SECONDARY_INTRODUCTION_HEADER = 'Waterfall Adventure Journal, Page %d of %d';
20
+
21
+    private static $KEYWORD_ARRAY = array(
22
+        'journal',
23
+        'travel log',
24
+        'blog',
25
+        'waterfalls',
26
+        'hiking companions');
27
+
28
+    private static $NAVIGATION_DESCRIPTION = 'displaying %d ~ %d of %d total journal entries';
29
+    private static $LINK_ROOT = '/journal/';
30
+
31
+    protected function get_initial_meta()
32
+    {
33
+        $meta_array = array();
34 34
 		
35
-		$meta_array['title'] = self::$PRIMARY_TITLE . ' | ' . self::$WEBSITE_TITLE;
36
-		$meta_array['description'] = self::$PRIMARY_DESCRIPTION;
37
-		$meta_array['keywords'] = self::$KEYWORD_ARRAY;
35
+        $meta_array['title'] = self::$PRIMARY_TITLE . ' | ' . self::$WEBSITE_TITLE;
36
+        $meta_array['description'] = self::$PRIMARY_DESCRIPTION;
37
+        $meta_array['keywords'] = self::$KEYWORD_ARRAY;
38 38
 		
39
-		return $meta_array;
40
-	}
39
+        return $meta_array;
40
+    }
41 41
 
42
-	protected function get_subsequent_meta()
43
-	{
44
-		$meta_array = array();
42
+    protected function get_subsequent_meta()
43
+    {
44
+        $meta_array = array();
45 45
 		
46
-		$meta_array['title'] = sprintf(self::$SECONDARY_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->page);
47
-		$meta_array['description'] = sprintf(self::$SECONDARY_DESCRIPTION, $this->page, $this->page_count);
48
-		$meta_array['keywords'] = self::$KEYWORD_ARRAY;
46
+        $meta_array['title'] = sprintf(self::$SECONDARY_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->page);
47
+        $meta_array['description'] = sprintf(self::$SECONDARY_DESCRIPTION, $this->page, $this->page_count);
48
+        $meta_array['keywords'] = self::$KEYWORD_ARRAY;
49 49
 		
50
-		return $meta_array;
51
-	}
50
+        return $meta_array;
51
+    }
52 52
 
53
-	protected function get_initial_introduction()
54
-	{
55
-		$introduction = array();
53
+    protected function get_initial_introduction()
54
+    {
55
+        $introduction = array();
56 56
 		
57
-		$introduction['title'] = self::$PRIMARY_INTRODUCTION_HEADER;
58
-		$introduction['description'] = self::$PRIMARY_INTRODUCTION_DESCRIPTION;
57
+        $introduction['title'] = self::$PRIMARY_INTRODUCTION_HEADER;
58
+        $introduction['description'] = self::$PRIMARY_INTRODUCTION_DESCRIPTION;
59 59
 		
60
-		$image = PhotoCollector::getRow(self::$PRIMARY_INTRODUCTION_IMAGE);
61
-		$introduction['image'] = $this->get_image_element($image->category, $image->name, $image->description, 'medium');
60
+        $image = PhotoCollector::getRow(self::$PRIMARY_INTRODUCTION_IMAGE);
61
+        $introduction['image'] = $this->get_image_element($image->category, $image->name, $image->description, 'medium');
62 62
 		
63
-		return $introduction;
64
-	}
65
-
66
-	protected function get_subsequent_introduction()
67
-	{
68
-		return array(
69
-			'title' => sprintf(self::$SECONDARY_INTRODUCTION_HEADER, $this->page, $this->page_count));
70
-	}
71
-
72
-	protected function get_page_number_piece()
73
-	{
74
-		return URLDecode::getPiece(2);
75
-	}
76
-
77
-	protected function get_item_result($total, $offset)
78
-	{
79
-		return LogCollector::getList($total, $offset);
80
-	}
81
-
82
-	protected function get_item_count_result()
83
-	{
84
-		return LogCollector::getListCount();
85
-	}
86
-
87
-	protected function get_list_description_pattern()
88
-	{
89
-		return self::$NAVIGATION_DESCRIPTION;
90
-	}
91
-
92
-	protected function get_list_link_root()
93
-	{
94
-		return self::$LINK_ROOT;
95
-	}
63
+        return $introduction;
64
+    }
65
+
66
+    protected function get_subsequent_introduction()
67
+    {
68
+        return array(
69
+            'title' => sprintf(self::$SECONDARY_INTRODUCTION_HEADER, $this->page, $this->page_count));
70
+    }
71
+
72
+    protected function get_page_number_piece()
73
+    {
74
+        return URLDecode::getPiece(2);
75
+    }
76
+
77
+    protected function get_item_result($total, $offset)
78
+    {
79
+        return LogCollector::getList($total, $offset);
80
+    }
81
+
82
+    protected function get_item_count_result()
83
+    {
84
+        return LogCollector::getListCount();
85
+    }
86
+
87
+    protected function get_list_description_pattern()
88
+    {
89
+        return self::$NAVIGATION_DESCRIPTION;
90
+    }
91
+
92
+    protected function get_list_link_root()
93
+    {
94
+        return self::$LINK_ROOT;
95
+    }
96 96
 
97 97
 }
98 98
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +11 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,7 @@  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() {
33 32
 		$meta_array = array();
34 33
 		
35 34
 		$meta_array['title'] = self::$PRIMARY_TITLE . ' | ' . self::$WEBSITE_TITLE;
@@ -39,8 +38,7 @@  discard block
 block discarded – undo
39 38
 		return $meta_array;
40 39
 	}
41 40
 
42
-	protected function get_subsequent_meta()
43
-	{
41
+	protected function get_subsequent_meta() {
44 42
 		$meta_array = array();
45 43
 		
46 44
 		$meta_array['title'] = sprintf(self::$SECONDARY_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->page);
@@ -50,8 +48,7 @@  discard block
 block discarded – undo
50 48
 		return $meta_array;
51 49
 	}
52 50
 
53
-	protected function get_initial_introduction()
54
-	{
51
+	protected function get_initial_introduction() {
55 52
 		$introduction = array();
56 53
 		
57 54
 		$introduction['title'] = self::$PRIMARY_INTRODUCTION_HEADER;
@@ -63,34 +60,28 @@  discard block
 block discarded – undo
63 60
 		return $introduction;
64 61
 	}
65 62
 
66
-	protected function get_subsequent_introduction()
67
-	{
63
+	protected function get_subsequent_introduction() {
68 64
 		return array(
69 65
 			'title' => sprintf(self::$SECONDARY_INTRODUCTION_HEADER, $this->page, $this->page_count));
70 66
 	}
71 67
 
72
-	protected function get_page_number_piece()
73
-	{
68
+	protected function get_page_number_piece() {
74 69
 		return URLDecode::getPiece(2);
75 70
 	}
76 71
 
77
-	protected function get_item_result($total, $offset)
78
-	{
72
+	protected function get_item_result($total, $offset) {
79 73
 		return LogCollector::getList($total, $offset);
80 74
 	}
81 75
 
82
-	protected function get_item_count_result()
83
-	{
76
+	protected function get_item_count_result() {
84 77
 		return LogCollector::getListCount();
85 78
 	}
86 79
 
87
-	protected function get_list_description_pattern()
88
-	{
80
+	protected function get_list_description_pattern() {
89 81
 		return self::$NAVIGATION_DESCRIPTION;
90 82
 	}
91 83
 
92
-	protected function get_list_link_root()
93
-	{
84
+	protected function get_list_link_root() {
94 85
 		return self::$LINK_ROOT;
95 86
 	}
96 87
 
Please login to merge, or discard this patch.