@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Jacobemerick\Web\Domain\Blog\Post; |
4 | 4 | |
5 | -interface PostRepositoryInterface |
|
6 | -{ |
|
5 | +interface PostRepositoryInterface |
|
6 | +{ |
|
7 | 7 | public function findPostByPath($path); |
8 | 8 | public function getActivePosts($limit = null, $offset= 0); |
9 | 9 | public function getActivePostsCount(); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | interface PostRepositoryInterface |
6 | 6 | { |
7 | 7 | public function findPostByPath($path); |
8 | - public function getActivePosts($limit = null, $offset= 0); |
|
8 | + public function getActivePosts($limit = null, $offset = 0); |
|
9 | 9 | public function getActivePostsCount(); |
10 | 10 | public function getActivePostsByTag($tag, $limit = null, $offset = 0); |
11 | 11 | public function getActivePostsCountByTag($tag); |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Jacobemerick\Web\Domain\Blog\Series; |
4 | 4 | |
5 | -interface SeriesRepositoryInterface |
|
6 | -{ |
|
5 | +interface SeriesRepositoryInterface |
|
6 | +{ |
|
7 | 7 | public function getSeriesForPost($post); |
8 | 8 | } |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Jacobemerick\Web\Domain\Blog\Tag; |
4 | 4 | |
5 | -interface TagRepositoryInterface |
|
6 | -{ |
|
5 | +interface TagRepositoryInterface |
|
6 | +{ |
|
7 | 7 | public function findTagByTitle($title); |
8 | 8 | public function getAllTags(); |
9 | 9 | public function getTagCloud(); |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Jacobemerick\Web\Domain\Blog\Introduction; |
4 | 4 | |
5 | -interface IntroductionRepositoryInterface |
|
6 | -{ |
|
5 | +interface IntroductionRepositoryInterface |
|
6 | +{ |
|
7 | 7 | public function findByType($type, $value = ''); |
8 | 8 | } |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Jacobemerick\Web\Domain\Stream\Changelog; |
4 | 4 | |
5 | -interface ChangelogRepositoryInterface |
|
6 | -{ |
|
5 | +interface ChangelogRepositoryInterface |
|
6 | +{ |
|
7 | 7 | public function getChanges($limit = null, $offset = 0); |
8 | 8 | } |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Jacobemerick\Web\Domain\Stream\Activity; |
4 | 4 | |
5 | -interface ActivityRepositoryInterface |
|
6 | -{ |
|
5 | +interface ActivityRepositoryInterface |
|
6 | +{ |
|
7 | 7 | public function getActivityById($id); |
8 | 8 | public function getActivities($limit = null, $offset = 0); |
9 | 9 | public function getActivitiesCount(); |
@@ -5,9 +5,9 @@ discard block |
||
5 | 5 | final class PhotoCollector extends Collector |
6 | 6 | { |
7 | 7 | |
8 | - public static function fetchRow($category, $photo) |
|
9 | - { |
|
10 | - $query = " |
|
8 | + public static function fetchRow($category, $photo) |
|
9 | + { |
|
10 | + $query = " |
|
11 | 11 | SELECT |
12 | 12 | `photo`.`name`, |
13 | 13 | `photo_category`.`name` AS `category`, |
@@ -24,12 +24,12 @@ discard block |
||
24 | 24 | `photo`.`name` = '{$photo}' && |
25 | 25 | `photo_category`.`name` = '{$category}' |
26 | 26 | LIMIT 1"; |
27 | - return self::run_row_query($query); |
|
28 | - } |
|
27 | + return self::run_row_query($query); |
|
28 | + } |
|
29 | 29 | |
30 | - public static function getRow($id) |
|
31 | - { |
|
32 | - $query = " |
|
30 | + public static function getRow($id) |
|
31 | + { |
|
32 | + $query = " |
|
33 | 33 | SELECT |
34 | 34 | `photo`.`name`, |
35 | 35 | `photo_category`.`name` AS `category`, |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | `photo`.`photographer` = `photographer`.`id` && |
46 | 46 | `photo`.`id` = '{$id}' |
47 | 47 | LIMIT 1"; |
48 | - return self::run_row_query($query); |
|
49 | - } |
|
48 | + return self::run_row_query($query); |
|
49 | + } |
|
50 | 50 | |
51 | 51 | } |
@@ -2,11 +2,11 @@ discard block |
||
2 | 2 | |
3 | 3 | Loader::load('collector', 'Collector'); |
4 | 4 | |
5 | -final class PhotoCollector extends Collector |
|
6 | -{ |
|
5 | +final class PhotoCollector extends Collector |
|
6 | +{ |
|
7 | 7 | |
8 | - public static function fetchRow($category, $photo) |
|
9 | - { |
|
8 | + public static function fetchRow($category, $photo) |
|
9 | + { |
|
10 | 10 | $query = " |
11 | 11 | SELECT |
12 | 12 | `photo`.`name`, |
@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | return self::run_row_query($query); |
28 | 28 | } |
29 | 29 | |
30 | - public static function getRow($id) |
|
31 | - { |
|
30 | + public static function getRow($id) |
|
31 | + { |
|
32 | 32 | $query = " |
33 | 33 | SELECT |
34 | 34 | `photo`.`name`, |
@@ -5,9 +5,9 @@ discard block |
||
5 | 5 | final class AlbumCollector extends Collector |
6 | 6 | { |
7 | 7 | |
8 | - public static function getPhotoListForAlbum($album) |
|
9 | - { |
|
10 | - $query = " |
|
8 | + public static function getPhotoListForAlbum($album) |
|
9 | + { |
|
10 | + $query = " |
|
11 | 11 | SELECT |
12 | 12 | `photo`.`name`, |
13 | 13 | `photo_category`.`name` AS `category`, |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | ORDER BY |
39 | 39 | `photo`.`date_taken`"; |
40 | 40 | |
41 | - return self::run_query($query); |
|
42 | - } |
|
41 | + return self::run_query($query); |
|
42 | + } |
|
43 | 43 | |
44 | 44 | } |
45 | 45 | \ No newline at end of file |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | Loader::load('collector', 'Collector'); |
4 | 4 | |
5 | -final class AlbumCollector extends Collector |
|
6 | -{ |
|
5 | +final class AlbumCollector extends Collector |
|
6 | +{ |
|
7 | 7 | |
8 | - public static function getPhotoListForAlbum($album) |
|
9 | - { |
|
8 | + public static function getPhotoListForAlbum($album) |
|
9 | + { |
|
10 | 10 | $query = " |
11 | 11 | SELECT |
12 | 12 | `photo`.`name`, |
@@ -5,9 +5,9 @@ discard block |
||
5 | 5 | final class WatercourseCollector extends Collector |
6 | 6 | { |
7 | 7 | |
8 | - public static function getById($id) |
|
9 | - { |
|
10 | - $query = " |
|
8 | + public static function getById($id) |
|
9 | + { |
|
10 | + $query = " |
|
11 | 11 | SELECT |
12 | 12 | `watercourse`.`name`, |
13 | 13 | `watercourse`.`alias` |
@@ -17,14 +17,14 @@ discard block |
||
17 | 17 | `watercourse`.`id` = '{$id}' |
18 | 18 | LIMIT 1"; |
19 | 19 | |
20 | - return self::run_row_query($query); |
|
21 | - } |
|
20 | + return self::run_row_query($query); |
|
21 | + } |
|
22 | 22 | |
23 | - public static function getByAlias($alias) |
|
24 | - { |
|
25 | - $alias = self::escape($alias); |
|
23 | + public static function getByAlias($alias) |
|
24 | + { |
|
25 | + $alias = self::escape($alias); |
|
26 | 26 | |
27 | - $query = " |
|
27 | + $query = " |
|
28 | 28 | SELECT |
29 | 29 | `watercourse`.`id`, |
30 | 30 | `watercourse`.`name`, |
@@ -48,12 +48,12 @@ discard block |
||
48 | 48 | `watercourse`.`alias` = '{$alias}' |
49 | 49 | LIMIT 1"; |
50 | 50 | |
51 | - return self::run_row_query($query); |
|
52 | - } |
|
51 | + return self::run_row_query($query); |
|
52 | + } |
|
53 | 53 | |
54 | - public static function getWatercourseList() |
|
55 | - { |
|
56 | - $query = " |
|
54 | + public static function getWatercourseList() |
|
55 | + { |
|
56 | + $query = " |
|
57 | 57 | SELECT |
58 | 58 | `sum_table`.`name`, |
59 | 59 | `sum_table`.`alias`, |
@@ -111,12 +111,12 @@ discard block |
||
111 | 111 | ORDER BY |
112 | 112 | `sum_table`.`name`"; |
113 | 113 | |
114 | - return self::run_query($query); |
|
115 | - } |
|
114 | + return self::run_query($query); |
|
115 | + } |
|
116 | 116 | |
117 | - public static function getLogListForWatercourse($watercourse, $total, $offset = 0) |
|
118 | - { |
|
119 | - $query = " |
|
117 | + public static function getLogListForWatercourse($watercourse, $total, $offset = 0) |
|
118 | + { |
|
119 | + $query = " |
|
120 | 120 | SELECT |
121 | 121 | `waterfall`.`id`, |
122 | 122 | `waterfall`.`name`, |
@@ -150,16 +150,16 @@ discard block |
||
150 | 150 | `watercourse` |
151 | 151 | LIMIT |
152 | 152 | {$offset}, {$total}"; |
153 | - return self::run_query($query); |
|
154 | - } |
|
153 | + return self::run_query($query); |
|
154 | + } |
|
155 | 155 | |
156 | 156 | public static function getParentWatercourse($watercourse) |
157 | 157 | { |
158 | 158 | } |
159 | 159 | |
160 | - public static function getLogCountForWatercourse($watercourse) |
|
161 | - { |
|
162 | - $query = " |
|
160 | + public static function getLogCountForWatercourse($watercourse) |
|
161 | + { |
|
162 | + $query = " |
|
163 | 163 | SELECT |
164 | 164 | SUM(`count`) AS `count` |
165 | 165 | FROM |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | ) |
207 | 207 | ) AS `sum_table`"; |
208 | 208 | |
209 | - return self::get_count($query); |
|
210 | - } |
|
209 | + return self::get_count($query); |
|
210 | + } |
|
211 | 211 | |
212 | 212 | } |
213 | 213 | \ No newline at end of file |
@@ -2,11 +2,11 @@ discard block |
||
2 | 2 | |
3 | 3 | Loader::load('collector', 'Collector'); |
4 | 4 | |
5 | -final class WatercourseCollector extends Collector |
|
6 | -{ |
|
5 | +final class WatercourseCollector extends Collector |
|
6 | +{ |
|
7 | 7 | |
8 | - public static function getById($id) |
|
9 | - { |
|
8 | + public static function getById($id) |
|
9 | + { |
|
10 | 10 | $query = " |
11 | 11 | SELECT |
12 | 12 | `watercourse`.`name`, |
@@ -20,8 +20,8 @@ discard block |
||
20 | 20 | return self::run_row_query($query); |
21 | 21 | } |
22 | 22 | |
23 | - public static function getByAlias($alias) |
|
24 | - { |
|
23 | + public static function getByAlias($alias) |
|
24 | + { |
|
25 | 25 | $alias = self::escape($alias); |
26 | 26 | |
27 | 27 | $query = " |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | return self::run_row_query($query); |
52 | 52 | } |
53 | 53 | |
54 | - public static function getWatercourseList() |
|
55 | - { |
|
54 | + public static function getWatercourseList() |
|
55 | + { |
|
56 | 56 | $query = " |
57 | 57 | SELECT |
58 | 58 | `sum_table`.`name`, |
@@ -114,8 +114,8 @@ discard block |
||
114 | 114 | return self::run_query($query); |
115 | 115 | } |
116 | 116 | |
117 | - public static function getLogListForWatercourse($watercourse, $total, $offset = 0) |
|
118 | - { |
|
117 | + public static function getLogListForWatercourse($watercourse, $total, $offset = 0) |
|
118 | + { |
|
119 | 119 | $query = " |
120 | 120 | SELECT |
121 | 121 | `waterfall`.`id`, |
@@ -153,12 +153,12 @@ discard block |
||
153 | 153 | return self::run_query($query); |
154 | 154 | } |
155 | 155 | |
156 | - public static function getParentWatercourse($watercourse) |
|
157 | - { |
|
156 | + public static function getParentWatercourse($watercourse) |
|
157 | + { |
|
158 | 158 | } |
159 | 159 | |
160 | - public static function getLogCountForWatercourse($watercourse) |
|
161 | - { |
|
160 | + public static function getLogCountForWatercourse($watercourse) |
|
161 | + { |
|
162 | 162 | $query = " |
163 | 163 | SELECT |
164 | 164 | SUM(`count`) AS `count` |