Completed
Push — master ( 5f640f...f30f41 )
by Pierre-Henry
34:09
created
_protected/app/system/modules/error/controllers/HttpController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * @package        PH7 / App / System / Module / Error / Controller
7 7
  */
8 8
 namespace PH7;
9
-use PH7\Framework\Http\Http, PH7\Framework\Mvc\Router\Uri;
9
+use PH7\Framework\Http\Http;
10 10
 
11 11
 class HttpController extends Controller
12 12
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/field/controllers/FieldController.php 1 patch
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,10 +7,9 @@
 block discarded – undo
7 7
  */
8 8
 namespace PH7;
9 9
 
10
-use
11
-PH7\Framework\Cache\Cache,
12
-PH7\Framework\Mvc\Router\Uri,
13
-PH7\Framework\Url\Header;
10
+use PH7\Framework\Cache\Cache;
11
+use PH7\Framework\Mvc\Router\Uri;
12
+use PH7\Framework\Url\Header;
14 13
 
15 14
 class FieldController extends Controller
16 15
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/field/models/FieldModel.php 1 patch
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,10 +7,9 @@
 block discarded – undo
7 7
  */
8 8
 namespace PH7;
9 9
 
10
-use
11
-PH7\Framework\Mvc\Model\Engine\Util\Various,
12
-PH7\Framework\Mvc\Request\Http,
13
-PH7\Framework\Mvc\Model\Engine\Db;
10
+use PH7\Framework\Mvc\Model\Engine\Util\Various;
11
+use PH7\Framework\Mvc\Request\Http;
12
+use PH7\Framework\Mvc\Model\Engine\Db;
14 13
 
15 14
 class FieldModel extends Framework\Mvc\Model\Engine\Model
16 15
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/forum/controllers/AdminController.php 1 patch
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,8 @@
 block discarded – undo
6 6
  * @package        PH7 / App / System / Module / Forum / Controller
7 7
  */
8 8
 namespace PH7;
9
-use PH7\Framework\Mvc\Router\Uri, PH7\Framework\Url\Header;
9
+use PH7\Framework\Mvc\Router\Uri;
10
+use PH7\Framework\Url\Header;
10 11
 
11 12
 class AdminController extends Controller
12 13
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/forum/controllers/ForumController.php 1 patch
Unused Use Statements   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,11 +7,10 @@
 block discarded – undo
7 7
  */
8 8
 namespace PH7;
9 9
 
10
-use
11
-PH7\Framework\Navigation\Page,
12
-PH7\Framework\Security\Ban\Ban,
13
-PH7\Framework\Mvc\Router\Uri,
14
-PH7\Framework\Url\Header;
10
+use PH7\Framework\Navigation\Page;
11
+use PH7\Framework\Security\Ban\Ban;
12
+use PH7\Framework\Mvc\Router\Uri;
13
+use PH7\Framework\Url\Header;
15 14
 
16 15
 class ForumController extends Controller
17 16
 {
Please login to merge, or discard this patch.
app/system/modules/forum/forms/processing/CategoryFormProcess.php 1 patch
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,10 +8,9 @@
 block discarded – undo
8 8
 namespace PH7;
9 9
 defined('PH7') or exit('Restricted access');
10 10
 
11
-use
12
-PH7\Framework\Mvc\Model\Engine\Db,
13
-PH7\Framework\Mvc\Router\Uri,
14
-PH7\Framework\Url\Header;
11
+use PH7\Framework\Mvc\Model\Engine\Db;
12
+use PH7\Framework\Mvc\Router\Uri;
13
+use PH7\Framework\Url\Header;
15 14
 
16 15
 class CategoryFormProcess extends Form
17 16
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/forum/forms/processing/MsgFormProcess.php 1 patch
Unused Use Statements   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,12 +8,11 @@
 block discarded – undo
8 8
 namespace PH7;
9 9
 defined('PH7') or exit('Restricted access');
10 10
 
11
-use
12
-PH7\Framework\Mvc\Model\Engine\Db,
13
-PH7\Framework\Mvc\Model\DbConfig,
14
-PH7\Framework\Mvc\Request\Http,
15
-PH7\Framework\Mvc\Router\Uri,
16
-PH7\Framework\Url\Header;
11
+use PH7\Framework\Mvc\Model\Engine\Db;
12
+use PH7\Framework\Mvc\Model\DbConfig;
13
+use PH7\Framework\Mvc\Request\Http;
14
+use PH7\Framework\Mvc\Router\Uri;
15
+use PH7\Framework\Url\Header;
17 16
 
18 17
 class MsgFormProcess extends Form
19 18
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/forum/models/ForumModel.php 1 patch
Doc Comments   +40 added lines patch added patch discarded remove patch
@@ -11,6 +11,11 @@  discard block
 block discarded – undo
11 11
 class ForumModel extends ForumCoreModel
12 12
 {
13 13
 
14
+    /**
15
+     * @param string $iCategoryId
16
+     * @param integer $iOffset
17
+     * @param integer $iLimit
18
+     */
14 19
     public function getCategory($iCategoryId = null, $iOffset = null, $iLimit = null)
15 20
     {
16 21
         $bIsLimit = isset($iOffset, $iLimit);
@@ -30,6 +35,14 @@  discard block
 block discarded – undo
30 35
         return (!empty($iCategoryId)) ? $rStmt->fetch(\PDO::FETCH_OBJ) : $rStmt->fetchAll(\PDO::FETCH_OBJ);
31 36
     }
32 37
 
38
+    /**
39
+     * @param string $sForumName
40
+     * @param null|string $sTopicSubject
41
+     * @param null|string $iProfileId
42
+     * @param integer $iApproved
43
+     * @param integer $iOffset
44
+     * @param integer $iLimit
45
+     */
33 46
     public function getTopic($sForumName, $iForumId, $sTopicSubject, $iTopicId, $iProfileId, $iApproved, $iOffset, $iLimit)
34 47
     {
35 48
         $iOffset = (int) $iOffset;
@@ -68,6 +81,9 @@  discard block
 block discarded – undo
68 81
         return $rStmt->execute();
69 82
     }
70 83
 
84
+    /**
85
+     * @param string $sCreatedDate
86
+     */
71 87
     public function addForum($iCategoryId, $sTitle, $sDescription, $sCreatedDate)
72 88
     {
73 89
         $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('Forums') . '(categoryId, name, description, createdDate)
@@ -79,6 +95,10 @@  discard block
 block discarded – undo
79 95
         return $rStmt->execute();
80 96
     }
81 97
 
98
+    /**
99
+     * @param integer $iProfileId
100
+     * @param string $sCreatedDate
101
+     */
82 102
     public function addTopic($iProfileId, $iForumId, $sTitle, $sMessage, $sCreatedDate)
83 103
     {
84 104
         $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('ForumsTopics') . '(profileId, forumId, title, message, createdDate)
@@ -91,6 +111,10 @@  discard block
 block discarded – undo
91 111
         return $rStmt->execute();
92 112
     }
93 113
 
114
+    /**
115
+     * @param integer $iProfileId
116
+     * @param string $sCreatedDate
117
+     */
94 118
     public function addMessage($iProfileId, $iTopicId, $sMessage, $sCreatedDate)
95 119
     {
96 120
         $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('ForumsMessages') . '(profileId, topicId, message, createdDate)
@@ -110,6 +134,9 @@  discard block
 block discarded – undo
110 134
         return $rStmt->execute();
111 135
     }
112 136
 
137
+    /**
138
+     * @param string $sUpdatedDate
139
+     */
113 140
     public function updateForum($iForumId, $iCategoryId, $sName, $sDescription, $sUpdatedDate)
114 141
     {
115 142
         $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('Forums') . 'SET categoryId = :categoryId, name = :name, description = :description, updatedDate = :updatedDate WHERE forumId = :forumId');
@@ -121,6 +148,10 @@  discard block
 block discarded – undo
121 148
         return $rStmt->execute();
122 149
     }
123 150
 
151
+    /**
152
+     * @param string $iProfileId
153
+     * @param string $sUpdatedDate
154
+     */
124 155
     public function updateTopic($iProfileId, $iTopicId, $sTitle, $sMessage, $sUpdatedDate)
125 156
     {
126 157
         $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('ForumsTopics') . 'SET title = :title, message = :message, updatedDate = :updatedDate WHERE profileId = :profileId AND topicId = :topicId');
@@ -132,6 +163,10 @@  discard block
 block discarded – undo
132 163
         return $rStmt->execute();
133 164
     }
134 165
 
166
+    /**
167
+     * @param string $iProfileId
168
+     * @param string $sUpdatedDate
169
+     */
135 170
     public function updateMessage($iProfileId, $iMessageId, $sMessage, $sUpdatedDate)
136 171
     {
137 172
         $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('ForumsMessages') . 'SET message = :message, updatedDate = :updatedDate WHERE profileId = :profileId AND messageId = :messageId');
@@ -272,6 +307,11 @@  discard block
 block discarded – undo
272 307
         return $mData;
273 308
     }
274 309
 
310
+    /**
311
+     * @param integer $iApproved
312
+     * @param integer $iOffset
313
+     * @param integer $iLimit
314
+     */
275 315
     public function getPostByProfile($iProfileId, $iApproved, $iOffset, $iLimit)
276 316
     {
277 317
         $iOffset = (int) $iOffset;
Please login to merge, or discard this patch.
_protected/app/system/modules/game/controllers/AdminController.php 1 patch
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,8 @@
 block discarded – undo
6 6
  * @package        PH7 / App / System / Module / Game / Controller
7 7
  */
8 8
 namespace PH7;
9
-use PH7\Framework\Mvc\Router\Uri, PH7\Framework\Url\Header;
9
+use PH7\Framework\Mvc\Router\Uri;
10
+use PH7\Framework\Url\Header;
10 11
 
11 12
 class AdminController extends MainController
12 13
 {
Please login to merge, or discard this patch.