@@ -59,6 +59,9 @@ discard block |
||
59 | 59 | $this->add_posts($youtube_result, 'youtube'); |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $type |
|
64 | + */ |
|
62 | 65 | private function remove_existing($result, $type) |
63 | 66 | { |
64 | 67 | foreach($result as $key => $row) |
@@ -70,6 +73,9 @@ discard block |
||
70 | 73 | return $result; |
71 | 74 | } |
72 | 75 | |
76 | + /** |
|
77 | + * @param string $type |
|
78 | + */ |
|
73 | 79 | private function add_posts($result, $type) |
74 | 80 | { |
75 | 81 | foreach($result as $row) |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | protected $connections; |
12 | 12 | |
13 | 13 | /** |
14 | - * @param Aura\Sql\ConnectionLocator $connections |
|
14 | + * @param ConnectionLocator $connections |
|
15 | 15 | */ |
16 | 16 | public function __construct(ConnectionLocator $connections) |
17 | 17 | { |
@@ -41,6 +41,9 @@ discard block |
||
41 | 41 | ->fetchOne($query, $bindings); |
42 | 42 | } |
43 | 43 | |
44 | + /** |
|
45 | + * @param integer $limit |
|
46 | + */ |
|
44 | 47 | public function getActivePosts($limit = null, $offset = 0) |
45 | 48 | { |
46 | 49 | $query = " |
@@ -79,6 +82,9 @@ discard block |
||
79 | 82 | ->fetchValue($query, $bindings); |
80 | 83 | } |
81 | 84 | |
85 | + /** |
|
86 | + * @param integer $limit |
|
87 | + */ |
|
82 | 88 | public function getActivePostsByTag($tag, $limit = null, $offset = 0) |
83 | 89 | { |
84 | 90 | $query = " |
@@ -122,6 +128,9 @@ discard block |
||
122 | 128 | ->fetchValue($query, $bindings); |
123 | 129 | } |
124 | 130 | |
131 | + /** |
|
132 | + * @param integer $limit |
|
133 | + */ |
|
125 | 134 | public function getActivePostsByCategory($category, $limit = null, $offset = 0) |
126 | 135 | { |
127 | 136 | $query = " |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | protected $api; |
15 | 15 | |
16 | 16 | /** |
17 | - * @param Jacobemerick\CommentService\Api\DefaultApi $api |
|
17 | + * @param DefaultApi $api |
|
18 | 18 | */ |
19 | 19 | public function __construct(DefaultApi $api) |
20 | 20 | { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
62 | - * @param Jacobemerick\CommentService\Model\Comment $comment |
|
62 | + * @param Comment $comment |
|
63 | 63 | * @return array |
64 | 64 | */ |
65 | 65 | protected function deserializeComment(Comment $comment) |
@@ -14,7 +14,7 @@ |
||
14 | 14 | protected $api; |
15 | 15 | |
16 | 16 | /** |
17 | - * @param Jacobemerick\CommentService\Api\DefaultApi $api |
|
17 | + * @param DefaultApi $api |
|
18 | 18 | */ |
19 | 19 | public function __construct(DefaultApi $api) |
20 | 20 | { |