Completed
Push — master ( 6d742b...a712f0 )
by Jacob
03:01
created
src/Domain/Comment/Commenter/ServiceCommenterRepository.php 1 patch
Braces   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@  discard block
 block discarded – undo
6 6
 use Jacobemerick\CommentService\Api\DefaultApi;
7 7
 use Jacobemerick\CommentService\Model\Commenter;
8 8
 
9
-class ServiceCommenterRepository implements CommenterRepositoryInterface
10
-{
9
+class ServiceCommenterRepository implements CommenterRepositoryInterface
10
+{
11 11
 
12 12
     /**
13 13
      * @var DefaultApi
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
     /**
18 18
      * @param DefaultApi $api
19 19
      */
20
-    public function __construct(DefaultApi $api)
21
-    {
20
+    public function __construct(DefaultApi $api)
21
+    {
22 22
         $this->api = $api;
23 23
     }
24 24
 
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
      * @return array
28 28
      * @throws ApiException
29 29
      */
30
-    public function createCommenter(array $commenter)
31
-    {
30
+    public function createCommenter(array $commenter)
31
+    {
32 32
         $response = $this->api->createCommenter($commenter);
33 33
         return $this->deserializeCommenter($response);
34 34
     }
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
      * @return array
39 39
      * @throws ApiException
40 40
      */
41
-    public function getCommenter($commenterId)
42
-    {
41
+    public function getCommenter($commenterId)
42
+    {
43 43
         $response = $this->api->getCommenter($commenterId);
44 44
         return $this->deserializeCommenter($response);
45 45
     }
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
      * @return array
51 51
      * @throws ApiException
52 52
      */
53
-    public function getCommenters($page = null, $perPage = null)
54
-    {
53
+    public function getCommenters($page = null, $perPage = null)
54
+    {
55 55
         $response = $this->api->getCommenters($page, $perPage);
56 56
         return array_map([$this, 'deserializeCommenter'], $response);
57 57
     }
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
      * @param Commenter
61 61
      * @return array
62 62
      */
63
-    protected function deserializeCommenter(Commenter $commenter)
64
-    {
63
+    protected function deserializeCommenter(Commenter $commenter)
64
+    {
65 65
         return [
66 66
             'id' => $commenter->getId(),
67 67
             'name' => $commenter->getName(),
Please login to merge, or discard this patch.
src/Domain/Stream/Changelog/MysqlChangelogRepository.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Aura\Sql\ConnectionLocator;
6 6
 
7
-class MysqlChangelogRepository implements ChangelogRepositoryInterface
8
-{
7
+class MysqlChangelogRepository implements ChangelogRepositoryInterface
8
+{
9 9
 
10 10
     /** @var  ConnectionLocator */
11 11
     protected $connections;
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * @param ConnectonLocator $connections
15 15
      */
16
-    public function __construct(ConnectionLocator $connections)
17
-    {
16
+    public function __construct(ConnectionLocator $connections)
17
+    {
18 18
         $this->connections = $connections;
19 19
     }
20 20
 
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @return array|false
26 26
      */
27
-    public function getChanges($limit = null, $offset = 0)
28
-    {
27
+    public function getChanges($limit = null, $offset = 0)
28
+    {
29 29
         $query = "
30 30
             SELECT `id`, `message`, `message_short`, `datetime`, `commit_link`
31 31
             FROM `jpemeric_stream`.`changelog`
Please login to merge, or discard this patch.
src/Domain/Stream/Activity/MysqlActivityRepository.php 1 patch
Braces   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Aura\Sql\ConnectionLocator;
6 6
 
7
-class MysqlActivityRepository implements ActivityRepositoryInterface
8
-{
7
+class MysqlActivityRepository implements ActivityRepositoryInterface
8
+{
9 9
 
10 10
     /** @var  ConnectionLocator */
11 11
     protected $connections;
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * @param ConnectonLocator $connections
15 15
      */
16
-    public function __construct(ConnectionLocator $connections)
17
-    {
16
+    public function __construct(ConnectionLocator $connections)
17
+    {
18 18
         $this->connections = $connections;
19 19
     }
20 20
 
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
      *
24 24
      * @return array|false
25 25
      */
26
-    public function getActivityById($id)
27
-    {
26
+    public function getActivityById($id)
27
+    {
28 28
         $query = "
29 29
             SELECT *
30 30
             FROM `jpemeric_stream`.`activity`
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @return array|false
48 48
      */
49
-    public function getActivities($limit = null, $offset = 0)
50
-    {
49
+    public function getActivities($limit = null, $offset = 0)
50
+    {
51 51
         $query = "
52 52
             SELECT *
53 53
             FROM `jpemeric_stream`.`activity`
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
             ->fetchAll($query);
64 64
     }
65 65
 
66
-    public function getActivitiesCount()
67
-    {
66
+    public function getActivitiesCount()
67
+    {
68 68
         $query = "
69 69
             SELECT COUNT(1) AS `count`
70 70
             FROM `jpemeric_stream`.`activity`";
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
             ->fetchValue($query);
76 76
     }
77 77
 
78
-    public function getActivitiesByType($type, $limit = null, $offset = 0)
79
-    {
78
+    public function getActivitiesByType($type, $limit = null, $offset = 0)
79
+    {
80 80
         $query = "
81 81
             SELECT *
82 82
             FROM `jpemeric_stream`.`activity`
@@ -96,8 +96,8 @@  discard block
 block discarded – undo
96 96
             ->fetchAll($query, $bindings);
97 97
     }
98 98
 
99
-    public function getActivitiesByTypeCount($type)
100
-    {
99
+    public function getActivitiesByTypeCount($type)
100
+    {
101 101
         $query = "
102 102
             SELECT COUNT(1) AS `count`
103 103
             FROM `jpemeric_stream`.`activity`
Please login to merge, or discard this patch.
src/Domain/Waterfall/Watercourse/MysqlWatercourseRepository.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Aura\Sql\ConnectionLocator;
6 6
 
7
-class MysqlWatercourseRepository implements WatercourseRepositoryInterface
8
-{
7
+class MysqlWatercourseRepository implements WatercourseRepositoryInterface
8
+{
9 9
 
10 10
     /** @var  Aura\Sql\ConnectionLocator */
11 11
     protected $connections;
@@ -13,14 +13,14 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * @param Aura\Sql\ConnectionLocator $connections
15 15
      */
16
-    public function __construct(ConnectionLocator $connections)
17
-    {
16
+    public function __construct(ConnectionLocator $connections)
17
+    {
18 18
         $this->connections = $connections;
19 19
     }
20 20
 
21 21
     // todo wot are you even serious
22
-    public function getWatercourseList()
23
-    {
22
+    public function getWatercourseList()
23
+    {
24 24
         $query = "
25 25
             SELECT `sum_table`.`name`, `sum_table`.`alias`, SUM(`count`) AS `count`
26 26
             FROM ((
Please login to merge, or discard this patch.
src/Domain/Waterfall/County/MysqlCountyRepository.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
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,13 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * @param Aura\Sql\ConnectionLocator $connections
15 15
      */
16
-    public function __construct(ConnectionLocator $connections)
17
-    {
16
+    public function __construct(ConnectionLocator $connections)
17
+    {
18 18
         $this->connections = $connections;
19 19
     }
20 20
 
21
-    public function getCountyList()
22
-    {
21
+    public function getCountyList()
22
+    {
23 23
         $query = "
24 24
             SELECT `county`.`name`, `county`.`alias`, COUNT(1) AS `count`
25 25
             FROM `jpemeric_waterfall`.`county`
Please login to merge, or discard this patch.
src/Domain/Waterfall/Period/MysqlPeriodRepository.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
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,13 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * @param Aura\Sql\ConnectionLocator $connections
15 15
      */
16
-    public function __construct(ConnectionLocator $connections)
17
-    {
16
+    public function __construct(ConnectionLocator $connections)
17
+    {
18 18
         $this->connections = $connections;
19 19
     }
20 20
 
21
-    public function getPeriodList()
22
-    {
21
+    public function getPeriodList()
22
+    {
23 23
         $query = "
24 24
             SELECT `period`.`name`, `period`.`alias`, COUNT(1) AS `count`
25 25
             FROM `jpemeric_waterfall`.`period`
Please login to merge, or discard this patch.
src/Domain/Waterfall/Companion/MysqlCompanionRepository.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Aura\Sql\ConnectionLocator;
6 6
 
7
-class MysqlCompanionRepository implements CompanionRepositoryInterface
8
-{
7
+class MysqlCompanionRepository implements CompanionRepositoryInterface
8
+{
9 9
 
10 10
     /** @var  Aura\Sql\ConnectionLocator */
11 11
     protected $connections;
@@ -13,13 +13,13 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * @param Aura\Sql\ConnectionLocator $connections
15 15
      */
16
-    public function __construct(ConnectionLocator $connections)
17
-    {
16
+    public function __construct(ConnectionLocator $connections)
17
+    {
18 18
         $this->connections = $connections;
19 19
     }
20 20
 
21
-    public function getCompanionList()
22
-    {
21
+    public function getCompanionList()
22
+    {
23 23
         $query = "
24 24
             SELECT `companion`.`name`, `companion`.`alias`, COUNT(1) AS `count`
25 25
             FROM `jpemeric_waterfall`.`companion`
Please login to merge, or discard this patch.
src/Domain/Waterfall/Waterfall/MysqlWaterfallRepository.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
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,13 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * @param Aura\Sql\ConnectionLocator $connections
15 15
      */
16
-    public function __construct(ConnectionLocator $connections)
17
-    {
16
+    public function __construct(ConnectionLocator $connections)
17
+    {
18 18
         $this->connections = $connections;
19 19
     }
20 20
 
21
-    public function getWaterfalls($limit = null, $offset = 0)
22
-    {
21
+    public function getWaterfalls($limit = null, $offset = 0)
22
+    {
23 23
         $query = "
24 24
             SELECT `waterfall`.`id`, `waterfall`.`name`, `waterfall`.`alias`,
25 25
                    `watercourse`.`name` AS `watercourse`, `watercourse`.`alias` AS `watercourse_alias`
Please login to merge, or discard this patch.
src/Domain/Waterfall/Log/MysqlLogRepository.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Aura\Sql\ConnectionLocator;
6 6
 
7
-class MysqlLogRepository implements LogRepositoryInterface
8
-{
7
+class MysqlLogRepository implements LogRepositoryInterface
8
+{
9 9
 
10 10
     /** @var  Aura\Sql\ConnectionLocator */
11 11
     protected $connections;
@@ -13,13 +13,13 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * @param Aura\Sql\ConnectionLocator $connections
15 15
      */
16
-    public function __construct(ConnectionLocator $connections)
17
-    {
16
+    public function __construct(ConnectionLocator $connections)
17
+    {
18 18
         $this->connections = $connections;
19 19
     }
20 20
 
21
-    public function getActiveLogs($limit = null, $offset = 0)
22
-    {
21
+    public function getActiveLogs($limit = null, $offset = 0)
22
+    {
23 23
         $query = "
24 24
             SELECT `id`, `title`, `alias`, `date`, `publish_date`, `introduction`
25 25
             FROM `jpemeric_waterfall`.`log`
Please login to merge, or discard this patch.