@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Jacobemerick\Web\Domain\Waterfall\Period; |
4 | 4 | |
5 | -interface PeriodRepositoryInterface |
|
6 | -{ |
|
5 | +interface PeriodRepositoryInterface |
|
6 | +{ |
|
7 | 7 | public function getPeriodList(); |
8 | 8 | } |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Jacobemerick\Web\Domain\Waterfall\Watercourse; |
4 | 4 | |
5 | -interface WatercourseRepositoryInterface |
|
6 | -{ |
|
5 | +interface WatercourseRepositoryInterface |
|
6 | +{ |
|
7 | 7 | public function getWatercourseList(); |
8 | 8 | } |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Jacobemerick\Web\Domain\Waterfall\Companion; |
4 | 4 | |
5 | -interface CompanionRepositoryInterface |
|
6 | -{ |
|
5 | +interface CompanionRepositoryInterface |
|
6 | +{ |
|
7 | 7 | public function getCompanionList(); |
8 | 8 | } |
@@ -4,8 +4,8 @@ discard block |
||
4 | 4 | |
5 | 5 | use Aura\Sql\ConnectionLocator; |
6 | 6 | |
7 | -class MysqlSeriesRepository implements SeriesRepositoryInterface |
|
8 | -{ |
|
7 | +class MysqlSeriesRepository implements SeriesRepositoryInterface |
|
8 | +{ |
|
9 | 9 | |
10 | 10 | /** @var Aura\Sql\ConnectionLocator */ |
11 | 11 | protected $connections; |
@@ -13,8 +13,7 @@ discard block |
||
13 | 13 | /** |
14 | 14 | * @param Aura\Sql\ConnectionLocator |
15 | 15 | */ |
16 | - public function __construct(ConnectionLocator $connections) |
|
17 | - { |
|
16 | + public function __construct(ConnectionLocator $connections) { |
|
18 | 17 | $this->connections = $connections; |
19 | 18 | } |
20 | 19 | |
@@ -23,8 +22,7 @@ discard block |
||
23 | 22 | * |
24 | 23 | * @return array|false |
25 | 24 | */ |
26 | - public function getSeriesForPost($post) |
|
27 | - { |
|
25 | + public function getSeriesForPost($post) { |
|
28 | 26 | $query = " |
29 | 27 | SELECT `series`.`title` AS `series_title`, `series`.`description` AS `series_description`, |
30 | 28 | `post`.`id` AS `post`, `post`.`title`, `post`.`category`, `post`.`path` |
@@ -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 | } |
@@ -4,8 +4,8 @@ discard block |
||
4 | 4 | |
5 | 5 | use Aura\Sql\ConnectionLocator; |
6 | 6 | |
7 | -class MysqlTagRepository implements TagRepositoryInterface |
|
8 | -{ |
|
7 | +class MysqlTagRepository implements TagRepositoryInterface |
|
8 | +{ |
|
9 | 9 | |
10 | 10 | /** @var Aura\Sql\ConnectionLocator */ |
11 | 11 | protected $connections; |
@@ -13,8 +13,7 @@ discard block |
||
13 | 13 | /** |
14 | 14 | * @param Aura\Sql\ConnectionLocator |
15 | 15 | */ |
16 | - public function __construct(ConnectionLocator $connections) |
|
17 | - { |
|
16 | + public function __construct(ConnectionLocator $connections) { |
|
18 | 17 | $this->connections = $connections; |
19 | 18 | } |
20 | 19 | |
@@ -23,8 +22,7 @@ discard block |
||
23 | 22 | * |
24 | 23 | * @return array|false |
25 | 24 | */ |
26 | - public function findTagByTitle($title) |
|
27 | - { |
|
25 | + public function findTagByTitle($title) { |
|
28 | 26 | $query = " |
29 | 27 | SELECT * |
30 | 28 | FROM `jpemeric_blog`.`tag` |
@@ -40,8 +38,7 @@ discard block |
||
40 | 38 | ->fetchOne($query, $bindings); |
41 | 39 | } |
42 | 40 | |
43 | - public function getAllTags() |
|
44 | - { |
|
41 | + public function getAllTags() { |
|
45 | 42 | $query = " |
46 | 43 | SELECT * |
47 | 44 | FROM `jpemeric_blog`.`tag` |
@@ -53,8 +50,7 @@ discard block |
||
53 | 50 | ->fetchAll($query); |
54 | 51 | } |
55 | 52 | |
56 | - public function getTagCloud() |
|
57 | - { |
|
53 | + public function getTagCloud() { |
|
58 | 54 | $query = " |
59 | 55 | SELECT COUNT(1) AS `count`, `tag` |
60 | 56 | FROM `jpemeric_blog`.`tag` |
@@ -72,8 +68,7 @@ discard block |
||
72 | 68 | ->fetchAll($query, $bindings); |
73 | 69 | } |
74 | 70 | |
75 | - public function getTagsForPost($post) |
|
76 | - { |
|
71 | + public function getTagsForPost($post) { |
|
77 | 72 | $query = " |
78 | 73 | SELECT `tag`.* |
79 | 74 | FROM `jpemeric_blog`.`tag` |
@@ -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(); |
@@ -4,8 +4,8 @@ discard block |
||
4 | 4 | |
5 | 5 | use Aura\Sql\ConnectionLocator; |
6 | 6 | |
7 | -class MysqlIntroductionRepository implements IntroductionRepositoryInterface |
|
8 | -{ |
|
7 | +class MysqlIntroductionRepository implements IntroductionRepositoryInterface |
|
8 | +{ |
|
9 | 9 | |
10 | 10 | /** @var Aura\Sql\ConnectionLocator */ |
11 | 11 | protected $connections; |
@@ -13,8 +13,7 @@ discard block |
||
13 | 13 | /** |
14 | 14 | * @param Aura\Sql\ConnectionLocator |
15 | 15 | */ |
16 | - public function __construct(ConnectionLocator $connections) |
|
17 | - { |
|
16 | + public function __construct(ConnectionLocator $connections) { |
|
18 | 17 | $this->connections = $connections; |
19 | 18 | } |
20 | 19 | |
@@ -24,8 +23,7 @@ discard block |
||
24 | 23 | * |
25 | 24 | * @return array|false |
26 | 25 | */ |
27 | - public function findByType($type, $value = '') |
|
28 | - { |
|
26 | + public function findByType($type, $value = '') { |
|
29 | 27 | $query = " |
30 | 28 | SELECT `title`, `content`, `image` |
31 | 29 | FROM `jpemeric_blog`.`introduction` |
@@ -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 | } |