Completed
Push — master ( a1f655...a0345d )
by Jacob
08:14
created
collector/waterfall/PeriodCollector.class.inc.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@  discard block
 block discarded – undo
5 5
 final class PeriodCollector extends Collector
6 6
 {
7 7
 
8
-	public static function getByAlias($alias)
9
-	{
10
-		$alias = self::escape($alias);
8
+    public static function getByAlias($alias)
9
+    {
10
+        $alias = self::escape($alias);
11 11
 		
12
-		$query = "
12
+        $query = "
13 13
 			SELECT
14 14
 				`period`.`id`,
15 15
 				`period`.`name`,
@@ -31,12 +31,12 @@  discard block
 block discarded – undo
31 31
 			WHERE
32 32
 				`period`.`alias` = '{$alias}'
33 33
 			LIMIT 1";
34
-		return self::run_row_query($query);
35
-	}
34
+        return self::run_row_query($query);
35
+    }
36 36
 
37
-	public static function getPeriodList()
38
-	{
39
-		$query = "
37
+    public static function getPeriodList()
38
+    {
39
+        $query = "
40 40
 			SELECT
41 41
 				`period`.`name`,
42 42
 				`period`.`alias`,
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
 				`period`.`alias`
53 53
 			ORDER BY
54 54
 				`period`.`id`";
55
-		return self::run_query($query);
56
-	}
55
+        return self::run_query($query);
56
+    }
57 57
 
58
-	public static function getLogListForPeriod($period, $total, $offset = 0)
59
-	{
60
-		$query = "
58
+    public static function getLogListForPeriod($period, $total, $offset = 0)
59
+    {
60
+        $query = "
61 61
 			SELECT
62 62
 				`log`.`id`,
63 63
 				`log`.`title`,
@@ -83,12 +83,12 @@  discard block
 block discarded – undo
83 83
 			LIMIT
84 84
 				{$offset}, {$total}";
85 85
 		
86
-		return self::run_query($query);
87
-	}
86
+        return self::run_query($query);
87
+    }
88 88
 
89
-	public static function getLogCountForPeriod($period)
90
-	{
91
-		$query = "
89
+    public static function getLogCountForPeriod($period)
90
+    {
91
+        $query = "
92 92
 			SELECT
93 93
 				COUNT(1) AS `count`
94 94
 			FROM
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 			WHERE
97 97
 				`period` = '{$period}' &&
98 98
 				`is_public` = '1'";
99
-		return self::get_count($query);
100
-	}
99
+        return self::get_count($query);
100
+    }
101 101
 
102 102
 }
103 103
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('collector', 'Collector');
4 4
 
5
-final class PeriodCollector extends Collector
6
-{
5
+final class PeriodCollector extends Collector
6
+{
7 7
 
8
-	public static function getByAlias($alias)
9
-	{
8
+	public static function getByAlias($alias)
9
+	{
10 10
 		$alias = self::escape($alias);
11 11
 		
12 12
 		$query = "
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
 		return self::run_row_query($query);
35 35
 	}
36 36
 
37
-	public static function getPeriodList()
38
-	{
37
+	public static function getPeriodList()
38
+	{
39 39
 		$query = "
40 40
 			SELECT
41 41
 				`period`.`name`,
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
 		return self::run_query($query);
56 56
 	}
57 57
 
58
-	public static function getLogListForPeriod($period, $total, $offset = 0)
59
-	{
58
+	public static function getLogListForPeriod($period, $total, $offset = 0)
59
+	{
60 60
 		$query = "
61 61
 			SELECT
62 62
 				`log`.`id`,
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
 		return self::run_query($query);
87 87
 	}
88 88
 
89
-	public static function getLogCountForPeriod($period)
90
-	{
89
+	public static function getLogCountForPeriod($period)
90
+	{
91 91
 		$query = "
92 92
 			SELECT
93 93
 				COUNT(1) AS `count`
Please login to merge, or discard this patch.
collector/waterfall/CountyCollector.class.inc.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@  discard block
 block discarded – undo
5 5
 final class CountyCollector extends Collector
6 6
 {
7 7
 
8
-	public static function getByAlias($alias)
9
-	{
10
-		$alias = self::escape($alias);
8
+    public static function getByAlias($alias)
9
+    {
10
+        $alias = self::escape($alias);
11 11
 		
12
-		$query = "
12
+        $query = "
13 13
 			SELECT
14 14
 				`county`.`id`,
15 15
 				`county`.`name`,
@@ -32,12 +32,12 @@  discard block
 block discarded – undo
32 32
 				`county`.`alias` = '{$alias}'
33 33
 			LIMIT 1";
34 34
 		
35
-		return self::run_row_query($query);
36
-	}
35
+        return self::run_row_query($query);
36
+    }
37 37
 
38
-	public static function getCountyList()
39
-	{
40
-		$query = "
38
+    public static function getCountyList()
39
+    {
40
+        $query = "
41 41
 			SELECT
42 42
 				`county`.`name`,
43 43
 				`county`.`alias`,
@@ -54,12 +54,12 @@  discard block
 block discarded – undo
54 54
 			ORDER BY
55 55
 				`county`.`name`";
56 56
 		
57
-		return self::run_query($query);
58
-	}
57
+        return self::run_query($query);
58
+    }
59 59
 
60
-	public static function getLogListForCounty($county, $total, $offset = 0)
61
-	{
62
-		$query = "
60
+    public static function getLogListForCounty($county, $total, $offset = 0)
61
+    {
62
+        $query = "
63 63
 			SELECT
64 64
 				`waterfall`.`id`,
65 65
 				`waterfall`.`name`,
@@ -93,12 +93,12 @@  discard block
 block discarded – undo
93 93
 				`watercourse`.`name`
94 94
 			LIMIT
95 95
 				{$offset}, {$total}";
96
-		return self::run_query($query);
97
-	}
96
+        return self::run_query($query);
97
+    }
98 98
 
99
-	public static function getLogCountForCounty($county)
100
-	{
101
-		$query = "
99
+    public static function getLogCountForCounty($county)
100
+    {
101
+        $query = "
102 102
 			SELECT
103 103
 				COUNT(1) AS `count`
104 104
 			FROM
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 			WHERE
110 110
 				`waterfall`.`county` = '{$county}' &&
111 111
 				`waterfall`.`is_public` = '1'";
112
-		return self::get_count($query);
113
-	}
112
+        return self::get_count($query);
113
+    }
114 114
 
115 115
 }
116 116
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('collector', 'Collector');
4 4
 
5
-final class CountyCollector extends Collector
6
-{
5
+final class CountyCollector extends Collector
6
+{
7 7
 
8
-	public static function getByAlias($alias)
9
-	{
8
+	public static function getByAlias($alias)
9
+	{
10 10
 		$alias = self::escape($alias);
11 11
 		
12 12
 		$query = "
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
 		return self::run_row_query($query);
36 36
 	}
37 37
 
38
-	public static function getCountyList()
39
-	{
38
+	public static function getCountyList()
39
+	{
40 40
 		$query = "
41 41
 			SELECT
42 42
 				`county`.`name`,
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
 		return self::run_query($query);
58 58
 	}
59 59
 
60
-	public static function getLogListForCounty($county, $total, $offset = 0)
61
-	{
60
+	public static function getLogListForCounty($county, $total, $offset = 0)
61
+	{
62 62
 		$query = "
63 63
 			SELECT
64 64
 				`waterfall`.`id`,
@@ -96,8 +96,8 @@  discard block
 block discarded – undo
96 96
 		return self::run_query($query);
97 97
 	}
98 98
 
99
-	public static function getLogCountForCounty($county)
100
-	{
99
+	public static function getLogCountForCounty($county)
100
+	{
101 101
 		$query = "
102 102
 			SELECT
103 103
 				COUNT(1) AS `count`
Please login to merge, or discard this patch.
collector/waterfall/LogCollector.class.inc.php 3 patches
Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@  discard block
 block discarded – undo
5 5
 final class LogCollector extends Collector
6 6
 {
7 7
 
8
-	public static function getList($total, $offset = 0)
9
-	{
10
-		$query = "
8
+    public static function getList($total, $offset = 0)
9
+    {
10
+        $query = "
11 11
 			SELECT
12 12
 				`log`.`id`,
13 13
 				`log`.`title`,
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
 				`log`.`date` DESC
32 32
 			LIMIT
33 33
 				{$offset}, {$total}";
34
-		return self::run_query($query);
35
-	}
34
+        return self::run_query($query);
35
+    }
36 36
 
37 37
     public static function getRecentList($total)
38 38
     {
@@ -62,21 +62,21 @@  discard block
 block discarded – undo
62 62
         return self::run_query($query);
63 63
     }
64 64
 
65
-	public static function getListCount()
66
-	{
67
-		$query = "
65
+    public static function getListCount()
66
+    {
67
+        $query = "
68 68
 			SELECT
69 69
 				COUNT(1) AS `count`
70 70
 			FROM
71 71
 				`jpemeric_waterfall`.`log`
72 72
 			WHERE
73 73
 				`is_public` = '1'";
74
-		return self::get_count($query);
75
-	}
74
+        return self::get_count($query);
75
+    }
76 76
 
77
-	public static function getCompanionListForLog($log)
78
-	{
79
-		$query = "
77
+    public static function getCompanionListForLog($log)
78
+    {
79
+        $query = "
80 80
 			SELECT
81 81
 				`companion`.`name`,
82 82
 				`companion`.`alias`
@@ -87,12 +87,12 @@  discard block
 block discarded – undo
87 87
 							ON `log_companion_map`.`companion` = `companion`.`id`
88 88
 			WHERE
89 89
 				`log_companion_map`.`log` = '{$log}'";
90
-		return self::run_query($query);
91
-	}
90
+        return self::run_query($query);
91
+    }
92 92
 
93
-	public static function getWaterfallListForLog($log)
94
-	{
95
-		$query = "
93
+    public static function getWaterfallListForLog($log)
94
+    {
95
+        $query = "
96 96
 			SELECT
97 97
 				`waterfall`.`name`,
98 98
 				`waterfall`.`alias`,
@@ -110,12 +110,12 @@  discard block
 block discarded – undo
110 110
 				`waterfall`.`is_public` = '1'
111 111
 			ORDER BY
112 112
 				`log_waterfall_map`.`order`";
113
-		return self::run_query($query);
114
-	}
113
+        return self::run_query($query);
114
+    }
115 115
 
116
-	public static function getLogListForWaterfall($waterfall)
117
-	{
118
-		$query = "
116
+    public static function getLogListForWaterfall($waterfall)
117
+    {
118
+        $query = "
119 119
 			SELECT
120 120
 				`log`.`title`,
121 121
 				`log`.`alias`,
@@ -130,12 +130,12 @@  discard block
 block discarded – undo
130 130
 				`log`.`is_public` = '1'
131 131
 			ORDER BY
132 132
 				`log`.`date`";
133
-		return self::run_query($query);
134
-	}
133
+        return self::run_query($query);
134
+    }
135 135
 
136
-	public static function getTagListForLog($log)
137
-	{
138
-		$query = "
136
+    public static function getTagListForLog($log)
137
+    {
138
+        $query = "
139 139
 			SELECT
140 140
 				`tag`.`name`,
141 141
 				`tag`.`alias`
@@ -144,14 +144,14 @@  discard block
 block discarded – undo
144 144
 					INNER JOIN
145 145
 						`jpemeric_waterfall`.`log_tag_map`
146 146
 							ON `log_tag_map`.`tag` = `tag`.`id` && `log_tag_map`.`log` = '{$log}'";
147
-		return self::run_query($query);
148
-	}
147
+        return self::run_query($query);
148
+    }
149 149
 
150
-	public static function getByAlias($alias)
151
-	{
152
-		$alias = self::escape($alias);
150
+    public static function getByAlias($alias)
151
+    {
152
+        $alias = self::escape($alias);
153 153
 		
154
-		$query = "
154
+        $query = "
155 155
 			SELECT
156 156
 				`log`.`id`,
157 157
 				`log`.`title`,
@@ -175,8 +175,8 @@  discard block
 block discarded – undo
175 175
 				`log`.`is_public` = '1'
176 176
 			LIMIT 1";
177 177
 		
178
-		return self::run_row_query($query);
179
-	}
178
+        return self::run_row_query($query);
179
+    }
180 180
 
181 181
     public static function getByDate($date)
182 182
     {
@@ -195,9 +195,9 @@  discard block
 block discarded – undo
195 195
         return self::run_row_query($query);
196 196
     }
197 197
 	
198
-	public static function getById($log)
199
-	{
200
-		$query = "
198
+    public static function getById($log)
199
+    {
200
+        $query = "
201 201
 			SELECT
202 202
 				`title`,
203 203
 				`date`,
@@ -208,12 +208,12 @@  discard block
 block discarded – undo
208 208
 				`id` = '{$log}' AND
209 209
 				`is_public` = '1'
210 210
 			LIMIT 1";
211
-		return self::run_row_query($query);
212
-	}
211
+        return self::run_row_query($query);
212
+    }
213 213
 
214
-	public static function getPreviousLog($log)
215
-	{
216
-		$query = "
214
+    public static function getPreviousLog($log)
215
+    {
216
+        $query = "
217 217
 			SELECT
218 218
 				`title`,
219 219
 				`date`,
@@ -233,12 +233,12 @@  discard block
 block discarded – undo
233 233
 				`date` DESC
234 234
 			LIMIT 1";
235 235
 		
236
-		return self::run_row_query($query);
237
-	}
236
+        return self::run_row_query($query);
237
+    }
238 238
 
239
-	public static function getNextLog($log)
240
-	{
241
-		$query = "
239
+    public static function getNextLog($log)
240
+    {
241
+        $query = "
242 242
 			SELECT
243 243
 				`title`,
244 244
 				`date`,
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 				`date` ASC
259 259
 			LIMIT 1";
260 260
 		
261
-		return self::run_row_query($query);
262
-	}
261
+        return self::run_row_query($query);
262
+    }
263 263
 
264 264
 }
Please login to merge, or discard this patch.
Braces   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('collector', 'Collector');
4 4
 
5
-final class LogCollector extends Collector
6
-{
5
+final class LogCollector extends Collector
6
+{
7 7
 
8
-	public static function getList($total, $offset = 0)
9
-	{
8
+	public static function getList($total, $offset = 0)
9
+	{
10 10
 		$query = "
11 11
 			SELECT
12 12
 				`log`.`id`,
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
 		return self::run_query($query);
35 35
 	}
36 36
 
37
-    public static function getRecentList($total)
38
-    {
37
+    public static function getRecentList($total)
38
+    {
39 39
         $query = "
40 40
             SELECT
41 41
                 `log`.`title`,
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
         return self::run_query($query);
63 63
     }
64 64
 
65
-	public static function getListCount()
66
-	{
65
+	public static function getListCount()
66
+	{
67 67
 		$query = "
68 68
 			SELECT
69 69
 				COUNT(1) AS `count`
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
 		return self::get_count($query);
75 75
 	}
76 76
 
77
-	public static function getCompanionListForLog($log)
78
-	{
77
+	public static function getCompanionListForLog($log)
78
+	{
79 79
 		$query = "
80 80
 			SELECT
81 81
 				`companion`.`name`,
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
 		return self::run_query($query);
91 91
 	}
92 92
 
93
-	public static function getWaterfallListForLog($log)
94
-	{
93
+	public static function getWaterfallListForLog($log)
94
+	{
95 95
 		$query = "
96 96
 			SELECT
97 97
 				`waterfall`.`name`,
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
 		return self::run_query($query);
114 114
 	}
115 115
 
116
-	public static function getLogListForWaterfall($waterfall)
117
-	{
116
+	public static function getLogListForWaterfall($waterfall)
117
+	{
118 118
 		$query = "
119 119
 			SELECT
120 120
 				`log`.`title`,
@@ -133,8 +133,8 @@  discard block
 block discarded – undo
133 133
 		return self::run_query($query);
134 134
 	}
135 135
 
136
-	public static function getTagListForLog($log)
137
-	{
136
+	public static function getTagListForLog($log)
137
+	{
138 138
 		$query = "
139 139
 			SELECT
140 140
 				`tag`.`name`,
@@ -147,8 +147,8 @@  discard block
 block discarded – undo
147 147
 		return self::run_query($query);
148 148
 	}
149 149
 
150
-	public static function getByAlias($alias)
151
-	{
150
+	public static function getByAlias($alias)
151
+	{
152 152
 		$alias = self::escape($alias);
153 153
 		
154 154
 		$query = "
@@ -178,8 +178,8 @@  discard block
 block discarded – undo
178 178
 		return self::run_row_query($query);
179 179
 	}
180 180
 
181
-    public static function getByDate($date)
182
-    {
181
+    public static function getByDate($date)
182
+    {
183 183
         $date = self::escape($date);
184 184
         
185 185
         $query = "
@@ -195,8 +195,8 @@  discard block
 block discarded – undo
195 195
         return self::run_row_query($query);
196 196
     }
197 197
 	
198
-	public static function getById($log)
199
-	{
198
+	public static function getById($log)
199
+	{
200 200
 		$query = "
201 201
 			SELECT
202 202
 				`title`,
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
 		return self::run_row_query($query);
212 212
 	}
213 213
 
214
-	public static function getPreviousLog($log)
215
-	{
214
+	public static function getPreviousLog($log)
215
+	{
216 216
 		$query = "
217 217
 			SELECT
218 218
 				`title`,
@@ -236,8 +236,8 @@  discard block
 block discarded – undo
236 236
 		return self::run_row_query($query);
237 237
 	}
238 238
 
239
-	public static function getNextLog($log)
240
-	{
239
+	public static function getNextLog($log)
240
+	{
241 241
 		$query = "
242 242
 			SELECT
243 243
 				`title`,
Please login to merge, or discard this patch.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@  discard block
 block discarded – undo
34 34
 		return self::run_query($query);
35 35
 	}
36 36
 
37
+    /**
38
+     * @param integer $total
39
+     */
37 40
     public static function getRecentList($total)
38 41
     {
39 42
         $query = "
@@ -178,6 +181,9 @@  discard block
 block discarded – undo
178 181
 		return self::run_row_query($query);
179 182
 	}
180 183
 
184
+    /**
185
+     * @param string $date
186
+     */
181 187
     public static function getByDate($date)
182 188
     {
183 189
         $date = self::escape($date);
Please login to merge, or discard this patch.
collector/waterfall/LogTagCollector.class.inc.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@  discard block
 block discarded – undo
5 5
 final class LogTagCollector extends Collector
6 6
 {
7 7
 
8
-	public static function getTag($alias)
9
-	{
10
-		$alias = self::escape($alias);
8
+    public static function getTag($alias)
9
+    {
10
+        $alias = self::escape($alias);
11 11
 		
12
-		$query = "
12
+        $query = "
13 13
 			SELECT
14 14
 				`tag`.`id`,
15 15
 				`tag`.`name`,
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
 				`tag`.`alias` = '{$alias}'
21 21
 			LIMIT 1";
22 22
 		
23
-		return self::run_row_query($query);
24
-	}
23
+        return self::run_row_query($query);
24
+    }
25 25
 
26
-	public static function getLogListForTag($tag, $total, $offset = 0)
27
-	{
28
-		$query = "
26
+    public static function getLogListForTag($tag, $total, $offset = 0)
27
+    {
28
+        $query = "
29 29
 			SELECT
30 30
 				`log`.`id`,
31 31
 				`log`.`title`,
@@ -54,12 +54,12 @@  discard block
 block discarded – undo
54 54
 			LIMIT
55 55
 				{$offset}, {$total}";
56 56
 		
57
-		return self::run_query($query);
58
-	}
57
+        return self::run_query($query);
58
+    }
59 59
 
60
-	public static function getLogCountForTag($tag)
61
-	{
62
-		$query = "
60
+    public static function getLogCountForTag($tag)
61
+    {
62
+        $query = "
63 63
 			SELECT
64 64
 				COUNT(1) AS `count`
65 65
 			FROM
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 				`log_tag_map`.`tag` = '{$tag}' &&
72 72
 				`log`.`is_public` = '1'";
73 73
 		
74
-		return self::get_count($query);
75
-	}
74
+        return self::get_count($query);
75
+    }
76 76
 
77 77
 }
78 78
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('collector', 'Collector');
4 4
 
5
-final class LogTagCollector extends Collector
6
-{
5
+final class LogTagCollector extends Collector
6
+{
7 7
 
8
-	public static function getTag($alias)
9
-	{
8
+	public static function getTag($alias)
9
+	{
10 10
 		$alias = self::escape($alias);
11 11
 		
12 12
 		$query = "
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 		return self::run_row_query($query);
24 24
 	}
25 25
 
26
-	public static function getLogListForTag($tag, $total, $offset = 0)
27
-	{
26
+	public static function getLogListForTag($tag, $total, $offset = 0)
27
+	{
28 28
 		$query = "
29 29
 			SELECT
30 30
 				`log`.`id`,
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
 		return self::run_query($query);
58 58
 	}
59 59
 
60
-	public static function getLogCountForTag($tag)
61
-	{
60
+	public static function getLogCountForTag($tag)
61
+	{
62 62
 		$query = "
63 63
 			SELECT
64 64
 				COUNT(1) AS `count`
Please login to merge, or discard this patch.
collector/Collector.class.inc.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -5,29 +5,29 @@
 block discarded – undo
5 5
 abstract class Collector
6 6
 {
7 7
 
8
-	protected static function run_query($query)
9
-	{
10
-		return Database::select($query);
11
-	}
12
-
13
-	protected static function run_row_query($query)
14
-	{
15
-		return Database::selectRow($query);
16
-	}
17
-
18
-	protected static function get_count($query)
19
-	{
20
-		return Database::selectRow($query)->count;
21
-	}
22
-
23
-	protected static function check_exists($query)
24
-	{
25
-		return Database::selectRow($query) !== null;
26
-	}
27
-
28
-	protected static function escape($string)
29
-	{
30
-		return Database::escape($string);
31
-	}
8
+    protected static function run_query($query)
9
+    {
10
+        return Database::select($query);
11
+    }
12
+
13
+    protected static function run_row_query($query)
14
+    {
15
+        return Database::selectRow($query);
16
+    }
17
+
18
+    protected static function get_count($query)
19
+    {
20
+        return Database::selectRow($query)->count;
21
+    }
22
+
23
+    protected static function check_exists($query)
24
+    {
25
+        return Database::selectRow($query) !== null;
26
+    }
27
+
28
+    protected static function escape($string)
29
+    {
30
+        return Database::escape($string);
31
+    }
32 32
 
33 33
 }
Please login to merge, or discard this patch.
Braces   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -2,31 +2,31 @@
 block discarded – undo
2 2
 
3 3
 Loader::loadInstance('utility', 'Database');
4 4
 
5
-abstract class Collector
6
-{
5
+abstract class Collector
6
+{
7 7
 
8
-	protected static function run_query($query)
9
-	{
8
+	protected static function run_query($query)
9
+	{
10 10
 		return Database::select($query);
11 11
 	}
12 12
 
13
-	protected static function run_row_query($query)
14
-	{
13
+	protected static function run_row_query($query)
14
+	{
15 15
 		return Database::selectRow($query);
16 16
 	}
17 17
 
18
-	protected static function get_count($query)
19
-	{
18
+	protected static function get_count($query)
19
+	{
20 20
 		return Database::selectRow($query)->count;
21 21
 	}
22 22
 
23
-	protected static function check_exists($query)
24
-	{
23
+	protected static function check_exists($query)
24
+	{
25 25
 		return Database::selectRow($query) !== null;
26 26
 	}
27 27
 
28
-	protected static function escape($string)
29
-	{
28
+	protected static function escape($string)
29
+	{
30 30
 		return Database::escape($string);
31 31
 	}
32 32
 
Please login to merge, or discard this patch.
controller/blog/AboutController.class.inc.php 3 patches
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -5,47 +5,47 @@
 block discarded – undo
5 5
 final class AboutController extends DefaultPageController
6 6
 {
7 7
 
8
-	private static $TITLE = 'About the Blog | Jacob Emerick';
9
-	private static $DESCRIPTION = "A little bit about the awesomeness on Jacob Emerick's Blog, diving into the topics covered, technology used, and methodology of writing new posts.";
10
-
11
-	private static $KEYWORD_ARRAY = array(
12
-		'about',
13
-		'technologies',
14
-		'background',
15
-		'blog',
16
-		'Jacob Emerick');
17
-
18
-	protected function set_head_data()
19
-	{
20
-		$this->set_title(self::$TITLE);
21
-		$this->set_description(self::$DESCRIPTION);
22
-		$this->set_keywords(self::$KEYWORD_ARRAY);
8
+    private static $TITLE = 'About the Blog | Jacob Emerick';
9
+    private static $DESCRIPTION = "A little bit about the awesomeness on Jacob Emerick's Blog, diving into the topics covered, technology used, and methodology of writing new posts.";
10
+
11
+    private static $KEYWORD_ARRAY = array(
12
+        'about',
13
+        'technologies',
14
+        'background',
15
+        'blog',
16
+        'Jacob Emerick');
17
+
18
+    protected function set_head_data()
19
+    {
20
+        $this->set_title(self::$TITLE);
21
+        $this->set_description(self::$DESCRIPTION);
22
+        $this->set_keywords(self::$KEYWORD_ARRAY);
23 23
 		
24
-		parent::set_head_data();
25
-	}
24
+        parent::set_head_data();
25
+    }
26 26
 
27
-	protected function set_body_data()
28
-	{
29
-		$this->set_body('view', 'About');
27
+    protected function set_body_data()
28
+    {
29
+        $this->set_body('view', 'About');
30 30
 		
31
-		parent::set_body_data();
32
-	}
31
+        parent::set_body_data();
32
+    }
33 33
 
34
-	protected function get_introduction()
35
-	{
34
+    protected function get_introduction()
35
+    {
36 36
         global $container;
37 37
         $repository = new Jacobemerick\Web\Domain\Blog\Introduction\MysqlIntroductionRepository($container['db_connection_locator']);
38 38
         $introduction_result = $repository->findByType('about');
39 39
 		
40
-		if($introduction_result !== null)
41
-		{
42
-			$introduction = array();
43
-			$introduction['title'] = $introduction_result['title'];
44
-			$introduction['content'] = $introduction_result['content'];
45
-			$introduction['image'] = $this->get_introduction_image($introduction_result['image']);
40
+        if($introduction_result !== null)
41
+        {
42
+            $introduction = array();
43
+            $introduction['title'] = $introduction_result['title'];
44
+            $introduction['content'] = $introduction_result['content'];
45
+            $introduction['image'] = $this->get_introduction_image($introduction_result['image']);
46 46
 			
47
-			return $introduction;
48
-		}
49
-	}
47
+            return $introduction;
48
+        }
49
+    }
50 50
 
51 51
 }
Please login to merge, or discard this patch.
Braces   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', 'blog/DefaultPageController');
4 4
 
5
-final class AboutController extends DefaultPageController
6
-{
5
+final class AboutController extends DefaultPageController
6
+{
7 7
 
8 8
 	private static $TITLE = 'About the Blog | Jacob Emerick';
9 9
 	private static $DESCRIPTION = "A little bit about the awesomeness on Jacob Emerick's Blog, diving into the topics covered, technology used, and methodology of writing new posts.";
@@ -15,8 +15,8 @@  discard block
 block discarded – undo
15 15
 		'blog',
16 16
 		'Jacob Emerick');
17 17
 
18
-	protected function set_head_data()
19
-	{
18
+	protected function set_head_data()
19
+	{
20 20
 		$this->set_title(self::$TITLE);
21 21
 		$this->set_description(self::$DESCRIPTION);
22 22
 		$this->set_keywords(self::$KEYWORD_ARRAY);
@@ -24,15 +24,15 @@  discard block
 block discarded – undo
24 24
 		parent::set_head_data();
25 25
 	}
26 26
 
27
-	protected function set_body_data()
28
-	{
27
+	protected function set_body_data()
28
+	{
29 29
 		$this->set_body('view', 'About');
30 30
 		
31 31
 		parent::set_body_data();
32 32
 	}
33 33
 
34
-	protected function get_introduction()
35
-	{
34
+	protected function get_introduction()
35
+	{
36 36
         global $container;
37 37
         $repository = new Jacobemerick\Web\Domain\Blog\Introduction\MysqlIntroductionRepository($container['db_connection_locator']);
38 38
         $introduction_result = $repository->findByType('about');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $repository = new Jacobemerick\Web\Domain\Blog\Introduction\MysqlIntroductionRepository($container['db_connection_locator']);
38 38
         $introduction_result = $repository->findByType('about');
39 39
 		
40
-		if($introduction_result !== null)
40
+		if ($introduction_result !== null)
41 41
 		{
42 42
 			$introduction = array();
43 43
 			$introduction['title'] = $introduction_result['title'];
Please login to merge, or discard this patch.
controller/waterfalls/DefaultPageController.class.inc.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -5,19 +5,19 @@  discard block
 block discarded – undo
5 5
 abstract class DefaultPageController extends PageController
6 6
 {
7 7
 
8
-	protected static $WEBSITE_TITLE = 'Waterfalls of the Keweenaw';
9
-	protected static $PAGE_DESCRIPTION_LIMIT = 250;
8
+    protected static $WEBSITE_TITLE = 'Waterfalls of the Keweenaw';
9
+    protected static $PAGE_DESCRIPTION_LIMIT = 250;
10 10
 
11
-	protected static $WATERFALL_SITE_ID = 5;
11
+    protected static $WATERFALL_SITE_ID = 5;
12 12
 
13 13
     protected $parent_navigation_item = '';
14 14
 
15
-	protected function set_head_data()
16
-	{
17
-		$this->set_head('google_verification', 'm9ua4n8lp4FUYYa2UOh51UyZYfdivl-kRTtXKwaH0-s');
18
-		$this->add_css('normalize');
19
-		$this->add_css('waterfalls');
20
-	}
15
+    protected function set_head_data()
16
+    {
17
+        $this->set_head('google_verification', 'm9ua4n8lp4FUYYa2UOh51UyZYfdivl-kRTtXKwaH0-s');
18
+        $this->add_css('normalize');
19
+        $this->add_css('waterfalls');
20
+    }
21 21
 
22 22
     protected function add_waterfall_js()
23 23
     {
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
         $this->add_js('waterfalls');
27 27
     }
28 28
 
29
-	protected function set_body_data($page_type = 'normal')
30
-	{
31
-		$this->set_body('activity_array', $this->get_recent_activity());
29
+    protected function set_body_data($page_type = 'normal')
30
+    {
31
+        $this->set_body('activity_array', $this->get_recent_activity());
32 32
 
33 33
         $this->set_body('main_navigation', array(
34 34
                 (object) array(
Please login to merge, or discard this patch.
Braces   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', '/PageController');
4 4
 
5
-abstract class DefaultPageController extends PageController
6
-{
5
+abstract class DefaultPageController extends PageController
6
+{
7 7
 
8 8
 	protected static $WEBSITE_TITLE = 'Waterfalls of the Keweenaw';
9 9
 	protected static $PAGE_DESCRIPTION_LIMIT = 250;
@@ -12,22 +12,22 @@  discard block
 block discarded – undo
12 12
 
13 13
     protected $parent_navigation_item = '';
14 14
 
15
-	protected function set_head_data()
16
-	{
15
+	protected function set_head_data()
16
+	{
17 17
 		$this->set_head('google_verification', 'm9ua4n8lp4FUYYa2UOh51UyZYfdivl-kRTtXKwaH0-s');
18 18
 		$this->add_css('normalize');
19 19
 		$this->add_css('waterfalls');
20 20
 	}
21 21
 
22
-    protected function add_waterfall_js()
23
-    {
22
+    protected function add_waterfall_js()
23
+    {
24 24
         $this->add_js('jquery');
25 25
         $this->add_js('imagelightbox');
26 26
         $this->add_js('waterfalls');
27 27
     }
28 28
 
29
-	protected function set_body_data($page_type = 'normal')
30
-	{
29
+	protected function set_body_data($page_type = 'normal')
30
+	{
31 31
 		$this->set_body('activity_array', $this->get_recent_activity());
32 32
 
33 33
         $this->set_body('main_navigation', array(
Please login to merge, or discard this patch.
controller/lifestream/PostController.class.inc.php 3 patches
Indentation   +90 added lines, -90 removed lines patch added patch discarded remove patch
@@ -5,112 +5,112 @@
 block discarded – undo
5 5
 final class PostController extends DefaultPageController
6 6
 {
7 7
 
8
-	private static $TITLE = "Post %d | %s Activity | Jacob Emerick's Lifestream";
9
-	private static $DESCRIPTION = "Post %d of %s activity on Jacob Emerick's Lifestream.";
8
+    private static $TITLE = "Post %d | %s Activity | Jacob Emerick's Lifestream";
9
+    private static $DESCRIPTION = "Post %d of %s activity on Jacob Emerick's Lifestream.";
10 10
 
11
-	private static $KEYWORD_ARRAY = array(
12
-		'lifestream',
13
-		'activity stream',
14
-		'Jacob Emerick');
11
+    private static $KEYWORD_ARRAY = array(
12
+        'lifestream',
13
+        'activity stream',
14
+        'Jacob Emerick');
15 15
 
16
-	private $post;
16
+    private $post;
17 17
 
18
-	public function __construct()
19
-	{
20
-		parent::__construct();
18
+    public function __construct()
19
+    {
20
+        parent::__construct();
21 21
 		
22
-		$id = URLDecode::getPiece(2);
23
-		if(!$id || !is_numeric($id))
24
-			$this->eject();
22
+        $id = URLDecode::getPiece(2);
23
+        if(!$id || !is_numeric($id))
24
+            $this->eject();
25 25
 		
26
-		$post = $this->activityRepository->getActivityById($id);
27
-		if(!$post)
28
-			$this->eject();
26
+        $post = $this->activityRepository->getActivityById($id);
27
+        if(!$post)
28
+            $this->eject();
29 29
 		
30
-		if(URLDecode::getPiece(1) != $post['type'])
31
-			$this->eject();
30
+        if(URLDecode::getPiece(1) != $post['type'])
31
+            $this->eject();
32 32
 		
33
-		$this->post = $post;
34
-	}
33
+        $this->post = $post;
34
+    }
35 35
 
36
-	protected function set_head_data()
37
-	{
38
-		$this->set_title(sprintf(self::$TITLE, $this->post['id'], ucwords($this->post['type'])));
39
-		$this->set_description(sprintf(self::$DESCRIPTION, $this->post['id'], ucwords($this->post['type'])));
36
+    protected function set_head_data()
37
+    {
38
+        $this->set_title(sprintf(self::$TITLE, $this->post['id'], ucwords($this->post['type'])));
39
+        $this->set_description(sprintf(self::$DESCRIPTION, $this->post['id'], ucwords($this->post['type'])));
40 40
 		
41
-		$keyword_array = self::$KEYWORD_ARRAY;
42
-		array_unshift($keyword_array, $this->post['type']);
43
-		$this->set_keywords($keyword_array);
41
+        $keyword_array = self::$KEYWORD_ARRAY;
42
+        array_unshift($keyword_array, $this->post['type']);
43
+        $this->set_keywords($keyword_array);
44 44
 		
45
-		parent::set_head_data();
46
-	}
45
+        parent::set_head_data();
46
+    }
47 47
 
48
-	protected function set_body_data()
49
-	{
50
-		$this->set_body('title', $this->get_title());
51
-		$this->set_body('description', $this->get_description());
48
+    protected function set_body_data()
49
+    {
50
+        $this->set_body('title', $this->get_title());
51
+        $this->set_body('description', $this->get_description());
52 52
 		
53
-		$this->set_body('post', $this->expand_post($this->post, 'full'));
54
-		$this->set_body('type', 'single');
55
-		$this->set_body('view', 'Post');
53
+        $this->set_body('post', $this->expand_post($this->post, 'full'));
54
+        $this->set_body('type', 'single');
55
+        $this->set_body('view', 'Post');
56 56
 		
57
-		parent::set_body_data();
58
-	}
57
+        parent::set_body_data();
58
+    }
59 59
 
60
-	private function get_title()
61
-	{
62
-		switch($this->post['type'])
63
-		{
64
-			case 'blog' :
65
-				return 'Jacob blogged';
66
-			break;
67
-			case 'book' :
68
-				return 'Jacob read again';
69
-			break;
70
-			case 'distance' :
71
-				return 'Jacob ran xor hiked';
72
-			break;
73
-      case 'github' :
60
+    private function get_title()
61
+    {
62
+        switch($this->post['type'])
63
+        {
64
+            case 'blog' :
65
+                return 'Jacob blogged';
66
+            break;
67
+            case 'book' :
68
+                return 'Jacob read again';
69
+            break;
70
+            case 'distance' :
71
+                return 'Jacob ran xor hiked';
72
+            break;
73
+        case 'github' :
74 74
         return 'Jacob did code';
75
-      break;
76
-			case 'hulu' :
77
-				return 'What Jacob watched';
78
-			break;
79
-			case 'twitter' :
80
-				return 'What Jacob tweeted';
81
-			break;
82
-			case 'youtube' :
83
-				return 'Jacob Liked a Video';
84
-			break;
85
-		}
86
-	}
75
+        break;
76
+            case 'hulu' :
77
+                return 'What Jacob watched';
78
+            break;
79
+            case 'twitter' :
80
+                return 'What Jacob tweeted';
81
+            break;
82
+            case 'youtube' :
83
+                return 'Jacob Liked a Video';
84
+            break;
85
+        }
86
+    }
87 87
 
88
-	private function get_description()
89
-	{
90
-		switch($this->post['type'])
91
-		{
92
-			case 'blog' :
93
-				return 'Another awesome blog post from Jacob. Did I mention it was awesome?';
94
-			break;
95
-			case 'book' :
96
-				return "Yup, Jacob read another book. Don't tell his parents.";
97
-			break;
98
-			case 'distance' :
99
-				return 'Well, it might have been both at the same time if there was a bear.';
100
-			break;
101
-      case 'github' :
88
+    private function get_description()
89
+    {
90
+        switch($this->post['type'])
91
+        {
92
+            case 'blog' :
93
+                return 'Another awesome blog post from Jacob. Did I mention it was awesome?';
94
+            break;
95
+            case 'book' :
96
+                return "Yup, Jacob read another book. Don't tell his parents.";
97
+            break;
98
+            case 'distance' :
99
+                return 'Well, it might have been both at the same time if there was a bear.';
100
+            break;
101
+        case 'github' :
102 102
         return 'An epic code change by Jacob on the Githubs.';
103
-      break;
104
-			case 'hulu' :
105
-				return 'It was a cold, dark night, so Jacob watched something on Hulu.';
106
-			break;
107
-			case 'twitter' :
108
-				return 'Just another awesome insight/thought/RT/random from Jacob.';
109
-			break;
110
-			case 'youtube' :
111
-				return "This is a video that Jacob liked on Youtube. It's probably awesome. You should check it out.";
112
-			break;
113
-		}
114
-	}
103
+        break;
104
+            case 'hulu' :
105
+                return 'It was a cold, dark night, so Jacob watched something on Hulu.';
106
+            break;
107
+            case 'twitter' :
108
+                return 'Just another awesome insight/thought/RT/random from Jacob.';
109
+            break;
110
+            case 'youtube' :
111
+                return "This is a video that Jacob liked on Youtube. It's probably awesome. You should check it out.";
112
+            break;
113
+        }
114
+    }
115 115
 
116 116
 }
Please login to merge, or discard this patch.
Braces   +21 added lines, -18 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', 'lifestream/DefaultPageController');
4 4
 
5
-final class PostController extends DefaultPageController
6
-{
5
+final class PostController extends DefaultPageController
6
+{
7 7
 
8 8
 	private static $TITLE = "Post %d | %s Activity | Jacob Emerick's Lifestream";
9 9
 	private static $DESCRIPTION = "Post %d of %s activity on Jacob Emerick's Lifestream.";
@@ -15,26 +15,29 @@  discard block
 block discarded – undo
15 15
 
16 16
 	private $post;
17 17
 
18
-	public function __construct()
19
-	{
18
+	public function __construct()
19
+	{
20 20
 		parent::__construct();
21 21
 		
22 22
 		$id = URLDecode::getPiece(2);
23
-		if(!$id || !is_numeric($id))
24
-			$this->eject();
23
+		if(!$id || !is_numeric($id)) {
24
+					$this->eject();
25
+		}
25 26
 		
26 27
 		$post = $this->activityRepository->getActivityById($id);
27
-		if(!$post)
28
-			$this->eject();
28
+		if(!$post) {
29
+					$this->eject();
30
+		}
29 31
 		
30
-		if(URLDecode::getPiece(1) != $post['type'])
31
-			$this->eject();
32
+		if(URLDecode::getPiece(1) != $post['type']) {
33
+					$this->eject();
34
+		}
32 35
 		
33 36
 		$this->post = $post;
34 37
 	}
35 38
 
36
-	protected function set_head_data()
37
-	{
39
+	protected function set_head_data()
40
+	{
38 41
 		$this->set_title(sprintf(self::$TITLE, $this->post['id'], ucwords($this->post['type'])));
39 42
 		$this->set_description(sprintf(self::$DESCRIPTION, $this->post['id'], ucwords($this->post['type'])));
40 43
 		
@@ -45,8 +48,8 @@  discard block
 block discarded – undo
45 48
 		parent::set_head_data();
46 49
 	}
47 50
 
48
-	protected function set_body_data()
49
-	{
51
+	protected function set_body_data()
52
+	{
50 53
 		$this->set_body('title', $this->get_title());
51 54
 		$this->set_body('description', $this->get_description());
52 55
 		
@@ -57,8 +60,8 @@  discard block
 block discarded – undo
57 60
 		parent::set_body_data();
58 61
 	}
59 62
 
60
-	private function get_title()
61
-	{
63
+	private function get_title()
64
+	{
62 65
 		switch($this->post['type'])
63 66
 		{
64 67
 			case 'blog' :
@@ -85,8 +88,8 @@  discard block
 block discarded – undo
85 88
 		}
86 89
 	}
87 90
 
88
-	private function get_description()
89
-	{
91
+	private function get_description()
92
+	{
90 93
 		switch($this->post['type'])
91 94
 		{
92 95
 			case 'blog' :
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
 		parent::__construct();
21 21
 		
22 22
 		$id = URLDecode::getPiece(2);
23
-		if(!$id || !is_numeric($id))
23
+		if (!$id || !is_numeric($id))
24 24
 			$this->eject();
25 25
 		
26 26
 		$post = $this->activityRepository->getActivityById($id);
27
-		if(!$post)
27
+		if (!$post)
28 28
 			$this->eject();
29 29
 		
30
-		if(URLDecode::getPiece(1) != $post['type'])
30
+		if (URLDecode::getPiece(1) != $post['type'])
31 31
 			$this->eject();
32 32
 		
33 33
 		$this->post = $post;
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
 	private function get_title()
61 61
 	{
62
-		switch($this->post['type'])
62
+		switch ($this->post['type'])
63 63
 		{
64 64
 			case 'blog' :
65 65
 				return 'Jacob blogged';
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
 	private function get_description()
89 89
 	{
90
-		switch($this->post['type'])
90
+		switch ($this->post['type'])
91 91
 		{
92 92
 			case 'blog' :
93 93
 				return 'Another awesome blog post from Jacob. Did I mention it was awesome?';
Please login to merge, or discard this patch.
controller/lifestream/DefaultPageController.class.inc.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -6,25 +6,25 @@
 block discarded – undo
6 6
 abstract class DefaultPageController extends PageController
7 7
 {
8 8
 
9
-  protected $activityRepository;
9
+    protected $activityRepository;
10 10
 
11
-  public function __construct()
12
-  {
11
+    public function __construct()
12
+    {
13 13
     parent::__construct();
14 14
 
15 15
     global $container;
16 16
     $this->activityRepository = new Jacobemerick\Web\Domain\Stream\Activity\MysqlActivityRepository($container['db_connection_locator']);
17
-  }
18
-
19
-	protected function set_head_data()
20
-	{
21
-		$this->add_css('normalize');
22
-		$this->add_css('lifestream', 2);
23
-	}
24
-
25
-	protected function set_body_data()
26
-	{
27
-		$this->set_body_view('Page');
28
-	}
17
+    }
18
+
19
+    protected function set_head_data()
20
+    {
21
+        $this->add_css('normalize');
22
+        $this->add_css('lifestream', 2);
23
+    }
24
+
25
+    protected function set_body_data()
26
+    {
27
+        $this->set_body_view('Page');
28
+    }
29 29
 
30 30
 }
Please login to merge, or discard this patch.
Braces   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -3,27 +3,27 @@
 block discarded – undo
3 3
 Loader::load('controller', '/PageController');
4 4
 Loader::load('utility', 'Content');
5 5
 
6
-abstract class DefaultPageController extends PageController
7
-{
6
+abstract class DefaultPageController extends PageController
7
+{
8 8
 
9 9
   protected $activityRepository;
10 10
 
11
-  public function __construct()
12
-  {
11
+  public function __construct()
12
+  {
13 13
     parent::__construct();
14 14
 
15 15
     global $container;
16 16
     $this->activityRepository = new Jacobemerick\Web\Domain\Stream\Activity\MysqlActivityRepository($container['db_connection_locator']);
17 17
   }
18 18
 
19
-	protected function set_head_data()
20
-	{
19
+	protected function set_head_data()
20
+	{
21 21
 		$this->add_css('normalize');
22 22
 		$this->add_css('lifestream', 2);
23 23
 	}
24 24
 
25
-	protected function set_body_data()
26
-	{
25
+	protected function set_body_data()
26
+	{
27 27
 		$this->set_body_view('Page');
28 28
 	}
29 29
 
Please login to merge, or discard this patch.