Completed
Push — master ( fcc1ef...af96a2 )
by Jacob
15s
created
controller/portfolio/ProjectsController.class.inc.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', 'portfolio/DefaultPageController');
4 4
 
5
-class ProjectsController extends DefaultPageController
6
-{
5
+class ProjectsController extends DefaultPageController
6
+{
7 7
 
8
-    protected function set_head_data()
9
-    {
8
+    protected function set_head_data()
9
+    {
10 10
         $this->set_title("Projects Page | Jacob Emerick's Portfolio");
11 11
         $this->set_description("Collection of key open-source projects that Jacob has developed and maintained over the years.");
12 12
         $this->set_keywords([
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
         ]);
20 20
     }
21 21
 
22
-    protected function set_body_data()
23
-    {
22
+    protected function set_body_data()
23
+    {
24 24
         $this->set_body('body_view', 'Projects');
25 25
         $this->set_body('body_data', []);
26 26
 
Please login to merge, or discard this patch.
controller/portfolio/AboutController.class.inc.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', 'portfolio/DefaultPageController');
4 4
 
5
-class AboutController extends DefaultPageController
6
-{
5
+class AboutController extends DefaultPageController
6
+{
7 7
 
8
-    protected function set_head_data()
9
-    {
8
+    protected function set_head_data()
9
+    {
10 10
         $this->set_title("Jacob Emerick's Portfolio");
11 11
         $this->set_description("Jacob Emerick's Portfolio - collection of programming projects and resume");
12 12
         $this->set_keywords([
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
         ]);
21 21
     }
22 22
 
23
-    protected function set_body_data()
24
-    {
23
+    protected function set_body_data()
24
+    {
25 25
         $this->set_body('body_view', 'About');
26 26
         $this->set_body('body_data', []);
27 27
 
Please login to merge, or discard this patch.
src/Domain/Blog/Tag/MysqlTagRepository.php 1 patch
Braces   +12 added lines, -12 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 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,8 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * @param Aura\Sql\ConnectionLocator
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 findTagByTitle($title)
27
-    {
26
+    public function findTagByTitle($title)
27
+    {
28 28
         $query = "
29 29
             SELECT *
30 30
             FROM `jpemeric_blog`.`tag`
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
             ->fetchOne($query, $bindings);
41 41
     }
42 42
 
43
-    public function getAllTags()
44
-    {
43
+    public function getAllTags()
44
+    {
45 45
         $query = "
46 46
             SELECT *
47 47
             FROM `jpemeric_blog`.`tag`
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
             ->fetchAll($query);
54 54
     }
55 55
 
56
-    public function getTagCloud()
57
-    {
56
+    public function getTagCloud()
57
+    {
58 58
         $query = "
59 59
             SELECT COUNT(1) AS `count`, `tag`
60 60
             FROM `jpemeric_blog`.`tag`
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
             ->fetchAll($query, $bindings);
73 73
     }
74 74
 
75
-    public function getTagsForPost($post)
76
-    {
75
+    public function getTagsForPost($post)
76
+    {
77 77
         $query = "
78 78
             SELECT `tag`.*
79 79
             FROM `jpemeric_blog`.`tag`
Please login to merge, or discard this patch.
src/Domain/Blog/Post/MysqlPostRepository.php 1 patch
Braces   +20 added lines, -20 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 MysqlPostRepository implements PostRepositoryInterface
8
-{
7
+class MysqlPostRepository implements PostRepositoryInterface
8
+{
9 9
 
10 10
     /** @var  Aura\Sql\ConnectionLocator */
11 11
     protected $connections;
@@ -13,8 +13,8 @@  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
 
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
      *
24 24
      * @return array|false
25 25
      */
26
-    public function findPostByPath($path)
27
-    {
26
+    public function findPostByPath($path)
27
+    {
28 28
         $query = "
29 29
             SELECT `id`, `title`, `path`, `date`, `body`, `category`
30 30
             FROM `jpemeric_blog`.`post`
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
             ->fetchOne($query, $bindings);
42 42
     }
43 43
 
44
-    public function getActivePosts($limit = null, $offset = 0)
45
-    {
44
+    public function getActivePosts($limit = null, $offset = 0)
45
+    {
46 46
         $query = "
47 47
             SELECT `id`, `title`, `path`, `date`, `body`, `category`
48 48
             FROM `jpemeric_blog`.`post`
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
             ->fetchAll($query, $bindings);
64 64
     }
65 65
 
66
-    public function getActivePostsCount()
67
-    {
66
+    public function getActivePostsCount()
67
+    {
68 68
         $query = "
69 69
             SELECT COUNT(1) AS `count`
70 70
             FROM `jpemeric_blog`.`post`
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
             ->fetchValue($query, $bindings);
80 80
     }
81 81
 
82
-    public function getActivePostsByTag($tag, $limit = null, $offset = 0)
83
-    {
82
+    public function getActivePostsByTag($tag, $limit = null, $offset = 0)
83
+    {
84 84
         $query = "
85 85
             SELECT `id`, `title`, `path`, `date`, `body`, `category`
86 86
             FROM `jpemeric_blog`.`post`
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
             ->fetchAll($query, $bindings);
105 105
     }
106 106
 
107
-    public function getActivePostsCountByTag($tag)
108
-    {
107
+    public function getActivePostsCountByTag($tag)
108
+    {
109 109
         $query = "
110 110
             SELECT COUNT(1) AS `count`
111 111
             FROM `jpemeric_blog`.`post`
@@ -123,8 +123,8 @@  discard block
 block discarded – undo
123 123
             ->fetchValue($query, $bindings);
124 124
     }
125 125
 
126
-    public function getActivePostsByCategory($category, $limit = null, $offset = 0)
127
-    {
126
+    public function getActivePostsByCategory($category, $limit = null, $offset = 0)
127
+    {
128 128
         $query = "
129 129
             SELECT `id`, `title`, `path`, `date`, `body`, `category`
130 130
             FROM `jpemeric_blog`.`post`
@@ -146,8 +146,8 @@  discard block
 block discarded – undo
146 146
             ->fetchAll($query, $bindings);
147 147
     }
148 148
 
149
-    public function getActivePostsCountByCategory($category)
150
-    {
149
+    public function getActivePostsCountByCategory($category)
150
+    {
151 151
         $query = "
152 152
             SELECT COUNT(1) AS `count`
153 153
             FROM `jpemeric_blog`.`post`
@@ -163,8 +163,8 @@  discard block
 block discarded – undo
163 163
             ->fetchValue($query, $bindings);
164 164
     }
165 165
 
166
-    public function getActivePostsByRelatedTags($post, $limit = 4)
167
-    {
166
+    public function getActivePostsByRelatedTags($post, $limit = 4)
167
+    {
168 168
         $query = "
169 169
             SELECT `id`, `title`, `path`, `date`, `body`, `category`, COUNT(1) AS `count`
170 170
             FROM `jpemeric_blog`.`post`
Please login to merge, or discard this patch.
src/Domain/Blog/Introduction/MysqlIntroductionRepository.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 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,8 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * @param Aura\Sql\ConnectionLocator
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 findByType($type, $value = '')
28
-    {
27
+    public function findByType($type, $value = '')
28
+    {
29 29
         $query = "
30 30
             SELECT `title`, `content`, `image`
31 31
             FROM `jpemeric_blog`.`introduction`
Please login to merge, or discard this patch.
src/Domain/Blog/Series/MysqlSeriesRepository.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 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,8 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * @param Aura\Sql\ConnectionLocator
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 getSeriesForPost($post)
27
-    {
26
+    public function getSeriesForPost($post)
27
+    {
28 28
         $query = "
29 29
             SELECT `series`.`title` AS `series_title`, `series`.`description` AS `series_description`,
30 30
                    `post`.`id` AS `post`, `post`.`title`, `post`.`category`, `post`.`path`
Please login to merge, or discard this patch.
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.