Completed
Push — master ( 89401c...4d85da )
by
unknown
18:11
created
src/Core/Service/AdminUserService.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,6 @@
 block discarded – undo
9 9
 use Core\Mapper\AdminUsersMapper;
10 10
 use Core\Filter\AdminUserFilter;
11 11
 use Core\Exception\FilterException;
12
-use Zend\Db\TableGateway\TableGateway;
13
-use Zend\Db\Sql\Predicate\Expression;
14 12
 use Zend\Paginator\Adapter\DbSelect;
15 13
 use Zend\Paginator\Paginator;
16 14
 use Zend\Crypt\Password\Bcrypt;
Please login to merge, or discard this patch.
src/Admin/src/Controller/AuthController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     /**
99 99
      * Clears user session.
100 100
      *
101
-     * @return static
101
+     * @return \Psr\Http\Message\ResponseInterface
102 102
      */
103 103
     public function logout(): \Psr\Http\Message\ResponseInterface
104 104
     {
Please login to merge, or discard this patch.
src/Article/src/Service/ArticleServiceInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
     /**
13 13
      * Fetches a list of ArticleEntity models.
14 14
      *
15
-     * @param array $params
16 15
      * @return ArrayObject
17 16
      */
18 17
     public function fetchAllArticles($page, $limit);
Please login to merge, or discard this patch.
src/Article/src/Service/EventService.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -63,6 +63,9 @@
 block discarded – undo
63 63
         return $this->getPagination($select, $page, $limit);
64 64
     }
65 65
 
66
+    /**
67
+     * @param integer $limit
68
+     */
66 69
     public function fetchLatest($limit)
67 70
     {
68 71
         return $this->articleEventsMapper->getLatest($limit);
Please login to merge, or discard this patch.
src/Article/src/Service/PostService.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -203,6 +203,9 @@
 block discarded – undo
203 203
         return $this->articleMapper->getCategories($articleId);
204 204
     }
205 205
 
206
+    /**
207
+     * @param integer $limit
208
+     */
206 209
     public function getLatestWeb($limit)
207 210
     {
208 211
         return $this->articlePostsMapper->getLatest($limit);
Please login to merge, or discard this patch.
src/Article/src/Service/VideoService.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -91,6 +91,9 @@
 block discarded – undo
91 91
         return $this->getPagination($select, $page, $limit);
92 92
     }
93 93
 
94
+    /**
95
+     * @param integer $limit
96
+     */
94 97
     public function fetchLatest($limit)
95 98
     {
96 99
         return $this->articleVideosMapper->getLatest($limit);
Please login to merge, or discard this patch.
src/Core/Mapper/AdminUsersMapper.php 1 patch
Doc Comments   +10 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@  discard block
 block discarded – undo
31 31
         $this->adapter = $adapter;
32 32
     }
33 33
 
34
+    /**
35
+     * @param string $id
36
+     */
34 37
     public function get($id)
35 38
     {
36 39
         return $this->select(['admin_user_id' => $id])->current();
@@ -40,7 +43,7 @@  discard block
 block discarded – undo
40 43
      * Get admin user by email.
41 44
      *
42 45
      * @param  string $email email
43
-     * @return array|\ArrayObject|null
46
+     * @return string
44 47
      */
45 48
     public function getByEmail(string $email)
46 49
     {
@@ -50,7 +53,6 @@  discard block
 block discarded – undo
50 53
     /**
51 54
      * Updates login data.
52 55
      *
53
-     * @param  string $uuid admin user id
54 56
      * @return int number of affected rows
55 57
      */
56 58
     public function updateLogin(string $userId): int
@@ -58,6 +60,9 @@  discard block
 block discarded – undo
58 60
         return $this->update(['last_login' => date('Y-m-d H:i:s')], ['admin_user_id' => $userId]);
59 61
     }
60 62
 
63
+    /**
64
+     * @param string $userId
65
+     */
61 66
     public function getPaginationSelect($userId)
62 67
     {
63 68
         $select = $this->getSql()->select()->order(['created_at' => 'desc']);
@@ -67,6 +72,9 @@  discard block
 block discarded – undo
67 72
         return $select;
68 73
     }
69 74
 
75
+    /**
76
+     * @param integer $limit
77
+     */
70 78
     public function getRandom($limit)
71 79
     {
72 80
         $select = $this->getSql()->select()
Please login to merge, or discard this patch.
data/phinx/migrations/20161229132343_article_discussions.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 use MysqlUuid\Formats\Binary;
5 5
 use MysqlUuid\Uuid;
6 6
 use Core\Entity\ArticleType;
7
-use MysqlUuid\Formats\PlainString;
8 7
 
9 8
 class ArticleDiscussions extends AbstractMigration
10 9
 {
Please login to merge, or discard this patch.
src/Article/src/Mapper/ArticleMapper.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Zend\Db\Adapter\AdapterAwareInterface;
8 8
 use Zend\Db\TableGateway\AbstractTableGateway;
9 9
 use Zend\Db\Sql\Delete;
10
-use Zend\Db\Sql\Insert;
11 10
 
12 11
 /**
13 12
  * Class ArticleMapper.
Please login to merge, or discard this patch.