Completed
Branch master (a2db23)
by Pierre-Henry
33:35
created
_repository/module/fake-admin-panel/inc/class/Logger.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * Build the log message.
75 75
      *
76 76
      * @access protected
77
-     * @return object this
77
+     * @return Logger this
78 78
      */
79 79
     protected function setLogMsg()
80 80
     {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      * Blocking IP address.
116 116
      *
117 117
      * @access protected
118
-     * @return object this
118
+     * @return Logger this
119 119
      */
120 120
     protected function blockIp()
121 121
     {
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      * Write a log file with the hacher information.
130 130
      *
131 131
      * @access protected
132
-     * @return object this
132
+     * @return Logger this
133 133
      */
134 134
     protected function writeFile()
135 135
     {
Please login to merge, or discard this patch.
_protected/app/system/modules/report/models/ReportModel.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -61,6 +61,9 @@
 block discarded – undo
61 61
         return (!empty($iId)) ? $rStmt->fetch(PDO::FETCH_OBJ) : $rStmt->fetchAll(PDO::FETCH_OBJ);
62 62
     }
63 63
 
64
+    /**
65
+     * @param string $iReportId
66
+     */
64 67
     public function delete($iReportId)
65 68
     {
66 69
         $rStmt = Db::getInstance()->prepare('DELETE FROM' . Db::prefix('Report') . 'WHERE reportId = :reportId LIMIT 1');
Please login to merge, or discard this patch.
_protected/framework/Translate/Lang.class.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,6 @@
 block discarded – undo
204 204
  /**
205 205
   * Language helper function.
206 206
   *
207
-  * @param string $sVar [, string $... ]
208 207
   *
209 208
   * @return string Returns the text with gettext function or language in an array (this depends on whether a key language was found in the language table).
210 209
   */
Please login to merge, or discard this patch.
_protected/app/system/core/models/GameCoreModel.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -15,6 +15,12 @@
 block discarded – undo
15 15
 
16 16
     const CACHE_GROUP = 'db/sys/mod/game', CACHE_TIME = 93312000;
17 17
 
18
+    /**
19
+     * @param string $sTitle
20
+     * @param string $iGameId
21
+     * @param integer $iOffset
22
+     * @param integer $iLimit
23
+     */
18 24
     public function get($sTitle = null, $iGameId = null, $iOffset, $iLimit, $sOrder = SearchCoreModel::NAME)
19 25
     {
20 26
         $iOffset = (int)$iOffset;
Please login to merge, or discard this patch.
_protected/app/system/core/models/LikeCoreModel.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@  discard block
 block discarded – undo
16 16
 
17 17
     const CACHE_GROUP = 'db/sys/core/like';
18 18
 
19
+    /**
20
+     * @param string $sKey
21
+     */
19 22
     public function select($sKey)
20 23
     {
21 24
         $this->cache->start(self::CACHE_GROUP, 'select' . $sKey, 3600 * 168);
@@ -32,6 +35,9 @@  discard block
 block discarded – undo
32 35
         return $oData;
33 36
     }
34 37
 
38
+    /**
39
+     * @param string $sKey
40
+     */
35 41
     public function update($sKey, $fLastIp)
36 42
     {
37 43
         $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('Likes') . 'SET votes = votes + 1 , lastVote = NOW() , lastIp =:lastIp WHERE keyId =:key');
@@ -40,6 +46,9 @@  discard block
 block discarded – undo
40 46
         return $rStmt->execute();
41 47
     }
42 48
 
49
+    /**
50
+     * @param string $sKey
51
+     */
43 52
     public function insert($sKey, $fLastIp)
44 53
     {
45 54
         $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('Likes') . 'SET keyId =:key ,votes=1 , lastVote = NOW(), lastIp =:lastIp');
Please login to merge, or discard this patch.
_protected/app/system/core/models/RatingCoreModel.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -17,6 +17,10 @@  discard block
 block discarded – undo
17 17
 
18 18
     const CACHE_GROUP = 'db/sys/core/rating', CACHE_TIME = 604800;
19 19
 
20
+    /**
21
+     * @param integer $iId
22
+     * @param string $sTable
23
+     */
20 24
     public function getVote($iId, $sTable)
21 25
     {
22 26
         $this->cache->start(self::CACHE_GROUP, 'getVote' . $iId . $sTable, static::
@@ -40,6 +44,10 @@  discard block
 block discarded – undo
40 44
         return $iData;
41 45
     }
42 46
 
47
+    /**
48
+     * @param integer $iId
49
+     * @param string $sTable
50
+     */
43 51
     public function getScore($iId, $sTable)
44 52
     {
45 53
         $this->cache->start(self::CACHE_GROUP, 'getScore' . $iId . $sTable, static::
@@ -63,6 +71,10 @@  discard block
 block discarded – undo
63 71
         return $fData;
64 72
     }
65 73
 
74
+    /**
75
+     * @param integer $iId
76
+     * @param string $sTable
77
+     */
66 78
     public function updateVotes($iId, $sTable)
67 79
     {
68 80
 
@@ -75,6 +87,11 @@  discard block
 block discarded – undo
75 87
         return $rStmt->execute();
76 88
     }
77 89
 
90
+    /**
91
+     * @param double $fScore
92
+     * @param integer $iId
93
+     * @param string $sTable
94
+     */
78 95
     public function updateScore($fScore, $iId, $sTable)
79 96
     {
80 97
         $sTable = Various::checkTable($sTable);
Please login to merge, or discard this patch.
_protected/app/system/modules/admin123/inc/class/Module.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@  discard block
 block discarded – undo
58 58
         $this->_sRoutePath = PH7_PATH_APP_CONFIG . 'routes/' . $this->_sDefLangRoute . '.xml';
59 59
     }
60 60
 
61
+    /**
62
+     * @param string $sModsDirModFolder
63
+     */
61 64
     public function setPath($sModsDirModFolder)
62 65
     {
63 66
         $this->_sModsDirModFolder = $sModsDirModFolder;
@@ -275,7 +278,7 @@  discard block
 block discarded – undo
275 278
      * Note: This method is valid only for public methods, it is not necessary to check the private methods.
276 279
      * @param string $sSwitch The check constant.
277 280
      *
278
-     * @return string Returns the constant if it is correct, otherwise an error message with exit() function.
281
+     * @return integer|null Returns the constant if it is correct, otherwise an error message with exit() function.
279 282
      */
280 283
     private function _checkParam($sSwitch)
281 284
     {
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
@@ -13,6 +13,11 @@  discard block
 block discarded – undo
13 13
 class ForumModel extends ForumCoreModel
14 14
 {
15 15
 
16
+    /**
17
+     * @param string $iCategoryId
18
+     * @param integer $iOffset
19
+     * @param integer $iLimit
20
+     */
16 21
     public function getCategory($iCategoryId = null, $iOffset = null, $iLimit = null)
17 22
     {
18 23
         $bIsLimit = isset($iOffset, $iLimit);
@@ -32,6 +37,14 @@  discard block
 block discarded – undo
32 37
         return (!empty($iCategoryId)) ? $rStmt->fetch(\PDO::FETCH_OBJ) : $rStmt->fetchAll(\PDO::FETCH_OBJ);
33 38
     }
34 39
 
40
+    /**
41
+     * @param string $sForumName
42
+     * @param null|string $sTopicSubject
43
+     * @param null|string $iProfileId
44
+     * @param integer $iApproved
45
+     * @param integer $iOffset
46
+     * @param integer $iLimit
47
+     */
35 48
     public function getTopic($sForumName, $iForumId, $sTopicSubject, $iTopicId, $iProfileId, $iApproved, $iOffset, $iLimit)
36 49
     {
37 50
         $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)
@@ -80,6 +96,10 @@  discard block
 block discarded – undo
80 96
         return $rStmt->execute();
81 97
     }
82 98
 
99
+    /**
100
+     * @param integer $iProfileId
101
+     * @param string $sCreatedDate
102
+     */
83 103
     public function addTopic($iProfileId, $iForumId, $sTitle, $sMessage, $sCreatedDate)
84 104
     {
85 105
         $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('ForumsTopics') . '(profileId, forumId, title, message, createdDate)
@@ -93,6 +113,10 @@  discard block
 block discarded – undo
93 113
         return $rStmt->execute();
94 114
     }
95 115
 
116
+    /**
117
+     * @param integer $iProfileId
118
+     * @param string $sCreatedDate
119
+     */
96 120
     public function addMessage($iProfileId, $iTopicId, $sMessage, $sCreatedDate)
97 121
     {
98 122
         $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('ForumsMessages') . '(profileId, topicId, message, createdDate)
@@ -115,6 +139,9 @@  discard block
 block discarded – undo
115 139
         return $rStmt->execute();
116 140
     }
117 141
 
142
+    /**
143
+     * @param string $sUpdatedDate
144
+     */
118 145
     public function updateForum($iForumId, $iCategoryId, $sName, $sDescription, $sUpdatedDate)
119 146
     {
120 147
         $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('Forums') .
@@ -128,6 +155,10 @@  discard block
 block discarded – undo
128 155
         return $rStmt->execute();
129 156
     }
130 157
 
158
+    /**
159
+     * @param string $iProfileId
160
+     * @param string $sUpdatedDate
161
+     */
131 162
     public function updateTopic($iProfileId, $iTopicId, $sTitle, $sMessage, $sUpdatedDate)
132 163
     {
133 164
         $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('ForumsTopics') .
@@ -141,6 +172,10 @@  discard block
 block discarded – undo
141 172
         return $rStmt->execute();
142 173
     }
143 174
 
175
+    /**
176
+     * @param string $iProfileId
177
+     * @param string $sUpdatedDate
178
+     */
144 179
     public function updateMessage($iProfileId, $iMessageId, $sMessage, $sUpdatedDate)
145 180
     {
146 181
         $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('ForumsMessages') .
@@ -280,6 +315,11 @@  discard block
 block discarded – undo
280 315
         return $mData;
281 316
     }
282 317
 
318
+    /**
319
+     * @param integer $iApproved
320
+     * @param integer $iOffset
321
+     * @param integer $iLimit
322
+     */
283 323
     public function getPostByProfile($iProfileId, $iApproved, $iOffset, $iLimit)
284 324
     {
285 325
         $iOffset = (int)$iOffset;
Please login to merge, or discard this patch.
_protected/framework/Compress/Compress.class.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -70,6 +70,9 @@  discard block
 block discarded – undo
70 70
         $this->_bIsGoogleClosure = (bool)Config::getInstance()->values['cache']['enable.js.closure_compiler_service'];
71 71
     }
72 72
 
73
+    /**
74
+     * @param string $sPhp
75
+     */
73 76
     public function parsePhp($sPhp)
74 77
     {
75 78
         $sPhp = preg_replace('#/\*.*+\*#', '', $sPhp); # Removing PHP comments
@@ -92,6 +95,9 @@  discard block
 block discarded – undo
92 95
         return $sHtml;
93 96
     }
94 97
 
98
+    /**
99
+     * @param string $sContent
100
+     */
95 101
     public function parseCss($sContent)
96 102
     {
97 103
         if ($this->_bJavaCompiler) {
@@ -143,6 +149,9 @@  discard block
 block discarded – undo
143 149
         return $sCssMinified;
144 150
     }
145 151
 
152
+    /**
153
+     * @param string $sContent
154
+     */
146 155
     public function parseJs($sContent)
147 156
     {
148 157
         if ($this->_bJavaCompiler) {
Please login to merge, or discard this patch.