@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Jacobemerick\Web\Domain\Comment\Comment; |
4 | 4 | |
5 | -interface CommentRepositoryInterface |
|
6 | -{ |
|
5 | +interface CommentRepositoryInterface |
|
6 | +{ |
|
7 | 7 | public function createComment(array $comment); |
8 | 8 | public function getComment($commentId); |
9 | 9 | public function getComments($domain = null, $path = null, $page = null, $perPage = null, $order = null); |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Jacobemerick\Web\Domain\Comment\Commenter; |
4 | 4 | |
5 | -interface CommenterRepositoryInterface |
|
6 | -{ |
|
5 | +interface CommenterRepositoryInterface |
|
6 | +{ |
|
7 | 7 | public function createCommenter(array $commenter); |
8 | 8 | public function getCommenter($commenterId); |
9 | 9 | public function getCommenters($page = null, $perPage = null); |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Jacobemerick\Web\Domain\Waterfall\County; |
4 | 4 | |
5 | -interface CountyRepositoryInterface |
|
6 | -{ |
|
5 | +interface CountyRepositoryInterface |
|
6 | +{ |
|
7 | 7 | public function getCountyList(); |
8 | 8 | } |
@@ -4,8 +4,8 @@ discard block |
||
4 | 4 | |
5 | 5 | use Aura\Sql\ConnectionLocator; |
6 | 6 | |
7 | -class MysqlCountyRepository implements CountyRepositoryInterface |
|
8 | -{ |
|
7 | +class MysqlCountyRepository implements CountyRepositoryInterface |
|
8 | +{ |
|
9 | 9 | |
10 | 10 | /** @var Aura\Sql\ConnectionLocator */ |
11 | 11 | protected $connections; |
@@ -13,13 +13,11 @@ discard block |
||
13 | 13 | /** |
14 | 14 | * @param Aura\Sql\ConnectionLocator $connections |
15 | 15 | */ |
16 | - public function __construct(ConnectionLocator $connections) |
|
17 | - { |
|
16 | + public function __construct(ConnectionLocator $connections) { |
|
18 | 17 | $this->connections = $connections; |
19 | 18 | } |
20 | 19 | |
21 | - public function getCountyList() |
|
22 | - { |
|
20 | + public function getCountyList() { |
|
23 | 21 | $query = " |
24 | 22 | SELECT `county`.`name`, `county`.`alias`, COUNT(1) AS `count` |
25 | 23 | FROM `jpemeric_waterfall`.`county` |
@@ -4,8 +4,8 @@ discard block |
||
4 | 4 | |
5 | 5 | use Aura\Sql\ConnectionLocator; |
6 | 6 | |
7 | -class MysqlPeriodRepository implements PeriodRepositoryInterface |
|
8 | -{ |
|
7 | +class MysqlPeriodRepository implements PeriodRepositoryInterface |
|
8 | +{ |
|
9 | 9 | |
10 | 10 | /** @var Aura\Sql\ConnectionLocator */ |
11 | 11 | protected $connections; |
@@ -13,13 +13,11 @@ discard block |
||
13 | 13 | /** |
14 | 14 | * @param Aura\Sql\ConnectionLocator $connections |
15 | 15 | */ |
16 | - public function __construct(ConnectionLocator $connections) |
|
17 | - { |
|
16 | + public function __construct(ConnectionLocator $connections) { |
|
18 | 17 | $this->connections = $connections; |
19 | 18 | } |
20 | 19 | |
21 | - public function getPeriodList() |
|
22 | - { |
|
20 | + public function getPeriodList() { |
|
23 | 21 | $query = " |
24 | 22 | SELECT `period`.`name`, `period`.`alias`, COUNT(1) AS `count` |
25 | 23 | FROM `jpemeric_waterfall`.`period` |
@@ -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 | } |
@@ -4,8 +4,8 @@ discard block |
||
4 | 4 | |
5 | 5 | use Aura\Sql\ConnectionLocator; |
6 | 6 | |
7 | -class MysqlWaterfallRepository implements WaterfallRepositoryInterface |
|
8 | -{ |
|
7 | +class MysqlWaterfallRepository implements WaterfallRepositoryInterface |
|
8 | +{ |
|
9 | 9 | |
10 | 10 | /** @var Aura\Sql\ConnectionLocator */ |
11 | 11 | protected $connections; |
@@ -13,13 +13,11 @@ discard block |
||
13 | 13 | /** |
14 | 14 | * @param Aura\Sql\ConnectionLocator $connections |
15 | 15 | */ |
16 | - public function __construct(ConnectionLocator $connections) |
|
17 | - { |
|
16 | + public function __construct(ConnectionLocator $connections) { |
|
18 | 17 | $this->connections = $connections; |
19 | 18 | } |
20 | 19 | |
21 | - public function getWaterfalls($limit = null, $offset = 0) |
|
22 | - { |
|
20 | + public function getWaterfalls($limit = null, $offset = 0) { |
|
23 | 21 | $query = " |
24 | 22 | SELECT `waterfall`.`id`, `waterfall`.`name`, `waterfall`.`alias`, |
25 | 23 | `watercourse`.`name` AS `watercourse`, `watercourse`.`alias` AS `watercourse_alias` |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Jacobemerick\Web\Domain\Waterfall\Waterfall; |
4 | 4 | |
5 | -interface WaterfallRepositoryInterface |
|
6 | -{ |
|
5 | +interface WaterfallRepositoryInterface |
|
6 | +{ |
|
7 | 7 | public function getWaterfalls($limit = null, $offset= 0); |
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 | } |