Completed
Push — master ( 5f640f...f30f41 )
by Pierre-Henry
34:09
created
_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/models/GameModel.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -12,6 +12,10 @@
 block discarded – undo
12 12
 class GameModel extends GameCoreModel
13 13
 {
14 14
 
15
+    /**
16
+     * @param integer $iOffset
17
+     * @param integer $iLimit
18
+     */
15 19
     public function getCategory($iCategoryId = null, $iOffset, $iLimit, $bCount = false)
16 20
     {
17 21
         $this->cache->start(static::CACHE_GROUP, 'category' . $iCategoryId . $iOffset . $iLimit . $bCount, static::CACHE_TIME);
Please login to merge, or discard this patch.
system/modules/lost-password/forms/processing/ForgotPasswordFormProcess.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@
 block discarded – undo
17 17
 class ForgotPasswordFormProcess extends Form
18 18
 {
19 19
 
20
+    /**
21
+     * @param string $sTable
22
+     */
20 23
     public function __construct($sTable)
21 24
     {
22 25
         parent::__construct();
Please login to merge, or discard this patch.
_protected/app/system/modules/love-calculator/inc/class/Calculator.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     /**
20 20
      * @param string $sName
21 21
      * @param string $sSecondName
22
-     * @return object this
22
+     * @return Calculator this
23 23
      */
24 24
     public function __construct($sName, $sSecondName)
25 25
     {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     }
80 80
 
81 81
     /**
82
-     * @return integer Amount
82
+     * @return string Amount
83 83
      */
84 84
     public function get()
85 85
     {
Please login to merge, or discard this patch.
_protected/app/system/modules/mail/models/MailModel.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
      * @param integer $iRecipient
52 52
      * @param string $sTitle
53 53
      * @param string $sMessage
54
-     * @param string $sCreateDate
55
-     * @return mixed (boolean | integer) Returns the ID of the message on success or FALSE on failure.
54
+     * @param string $sCreatedDate
55
+     * @return string|null (boolean | integer) Returns the ID of the message on success or FALSE on failure.
56 56
      */
57 57
     public function sendMsg($iSender, $iRecipient, $sTitle, $sMessage, $sCreatedDate)
58 58
     {
@@ -74,6 +74,9 @@  discard block
 block discarded – undo
74 74
         return $rStmt->execute();
75 75
     }
76 76
 
77
+    /**
78
+     * @param string $iMessageId
79
+     */
77 80
     public function adminDeleteMsg($iMessageId)
78 81
     {
79 82
         $rStmt = Db::getInstance()->prepare('DELETE FROM' . Db::prefix('Messages') . 'WHERE messageId = :messageId LIMIT 1');
@@ -89,6 +92,9 @@  discard block
 block discarded – undo
89 92
         Db::free($rStmt);
90 93
     }
91 94
 
95
+    /**
96
+     * @param integer $iMessageId
97
+     */
92 98
     public function getMsg($iMessageId)
93 99
     {
94 100
         $rStmt = Db::getInstance()->prepare('SELECT * FROM' . Db::prefix('Messages') . 'WHERE messageId = :messageId LIMIT 1');
Please login to merge, or discard this patch.
_protected/app/system/modules/note/models/NoteModel.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -12,6 +12,11 @@  discard block
 block discarded – undo
12 12
 class NoteModel extends NoteCoreModel
13 13
 {
14 14
 
15
+    /**
16
+     * @param string $iNoteId
17
+     * @param integer $iOffset
18
+     * @param integer $iLimit
19
+     */
15 20
     public function getCategory($iNoteId = null, $iOffset, $iLimit, $bCount = false)
16 21
     {
17 22
         $this->cache->start(self::CACHE_GROUP, 'category' . $iNoteId . $iOffset . $iLimit . $bCount, static::CACHE_TIME);
@@ -67,6 +72,9 @@  discard block
 block discarded – undo
67 72
         return $oData;
68 73
     }
69 74
 
75
+    /**
76
+     * @param string $iProfileId
77
+     */
70 78
     public function addCategory($iCategoryId, $iNoteId, $iProfileId)
71 79
     {
72 80
         $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('NotesCategories') . '(categoryId, noteId, profileId) VALUES(:categoryId, :noteId, :profileId)');
@@ -77,6 +85,9 @@  discard block
 block discarded – undo
77 85
         Db::free($rStmt);
78 86
     }
79 87
 
88
+    /**
89
+     * @param string $iProfileId
90
+     */
80 91
     public function readPost($sPostId, $iProfileId, $iApproved = 1)
81 92
     {
82 93
         $this->cache->start(self::CACHE_GROUP, 'readPost' . $sPostId . $iProfileId . $iApproved, static::CACHE_TIME);
@@ -273,6 +284,10 @@  discard block
 block discarded – undo
273 284
         return $sData;
274 285
     }
275 286
 
287
+    /**
288
+     * @param string $sPostId
289
+     * @param integer $iProfileId
290
+     */
276 291
     public function postIdExists($sPostId, $iProfileId)
277 292
     {
278 293
         $this->cache->start(self::CACHE_GROUP, 'postIdExists' . $sPostId . $iProfileId, static::CACHE_TIME);
@@ -323,6 +338,9 @@  discard block
 block discarded – undo
323 338
         $this->updatePost('thumb', null, $iNoteId, $iProfileId);
324 339
     }
325 340
 
341
+    /**
342
+     * @param string $sSection
343
+     */
326 344
     public function updatePost($sSection, $sValue, $iNoteId, $iProfileId)
327 345
     {
328 346
         $rStmt = Db::getInstance()->prepare('UPDATE'.Db::prefix('Notes').'SET ' . $sSection . ' = :value WHERE noteId = :noteId AND profileId = :profileId');
Please login to merge, or discard this patch.
_protected/app/system/modules/picture/models/PictureModel.php 1 patch
Doc Comments   +32 added lines patch added patch discarded remove patch
@@ -12,6 +12,11 @@  discard block
 block discarded – undo
12 12
 class PictureModel extends PictureCoreModel
13 13
 {
14 14
 
15
+    /**
16
+     * @param string $iProfileId
17
+     * @param string $sThumb
18
+     * @param string $sCreatedDate
19
+     */
15 20
     public function addAlbum($iProfileId, $sTitle, $sDescription, $sThumb, $sCreatedDate, $iApproved = 1)
16 21
     {
17 22
         $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('AlbumsPictures') . '(profileId, name, description, thumb, createdDate, approved)
@@ -25,6 +30,12 @@  discard block
 block discarded – undo
25 30
         return $rStmt->execute();
26 31
     }
27 32
 
33
+    /**
34
+     * @param string $iProfileId
35
+     * @param integer $iAlbumId
36
+     * @param string $sFile
37
+     * @param string $sCreatedDate
38
+     */
28 39
     public function addPhoto($iProfileId, $iAlbumId, $sTitle, $sDescription, $sFile, $sCreatedDate, $iApproved = 1)
29 40
     {
30 41
         $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('Pictures') . '(profileId, albumId, title, description, file, createdDate, approved)
@@ -47,6 +58,9 @@  discard block
 block discarded – undo
47 58
         return $rStmt->execute();
48 59
     }
49 60
 
61
+    /**
62
+     * @param string $iProfileId
63
+     */
50 64
     public function getAlbumsName($iProfileId)
51 65
     {
52 66
         $this->cache->start(self::CACHE_GROUP, 'albumName' . $iProfileId, static::CACHE_TIME);
@@ -64,6 +78,13 @@  discard block
 block discarded – undo
64 78
         return $oData;
65 79
     }
66 80
 
81
+    /**
82
+     * @param string $iProfileId
83
+     * @param string $iAlbumId
84
+     * @param string $iPictureId
85
+     * @param integer $iOffset
86
+     * @param integer $iLimit
87
+     */
67 88
     public function photo($iProfileId, $iAlbumId, $iPictureId = null, $iApproved = 1, $iOffset, $iLimit)
68 89
     {
69 90
         $this->cache->start(self::CACHE_GROUP, 'photo' . $iProfileId . $iAlbumId . $iPictureId . $iApproved . $iOffset . $iLimit, static::CACHE_TIME);
@@ -128,6 +149,11 @@  discard block
 block discarded – undo
128 149
         return $iData;
129 150
     }
130 151
 
152
+    /**
153
+     * @param string $iProfileId
154
+     * @param integer $iAlbumId
155
+     * @param string $sUpdatedDate
156
+     */
131 157
     public function updateAlbum($iProfileId, $iAlbumId, $sTitle, $sDescription, $sUpdatedDate)
132 158
     {
133 159
         $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('AlbumsPictures') . 'SET name =:name, description =:description, updatedDate =:updatedDate WHERE profileId=:profileId AND albumId=:albumId');
@@ -139,6 +165,12 @@  discard block
 block discarded – undo
139 165
         return $rStmt->execute();
140 166
     }
141 167
 
168
+    /**
169
+     * @param string $iProfileId
170
+     * @param integer $iAlbumId
171
+     * @param integer $iPictureId
172
+     * @param string $sUpdatedDate
173
+     */
142 174
     public function updatePhoto($iProfileId, $iAlbumId, $iPictureId, $sTitle, $sDescription, $sUpdatedDate)
143 175
     {
144 176
         $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('Pictures') . 'SET title =:title, description =:description, updatedDate =:updatedDate WHERE profileId=:profileId AND albumId=:albumId AND pictureId=:pictureId');
Please login to merge, or discard this patch.
_protected/app/system/modules/report/inc/class/Report.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * Add the fields in the database
31 31
      *
32 32
      * @param array $aData The data to  add
33
-     * @return object this
33
+     * @return Report this
34 34
      */
35 35
     public function add(array $aData)
36 36
     {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * Get status
74 74
      *
75
-     * @return mixed (string | boolean) Text of the statute or boolean
75
+     * @return boolean (string | boolean) Text of the statute or boolean
76 76
      */
77 77
     public function get()
78 78
     {
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
@@ -56,6 +56,9 @@
 block discarded – undo
56 56
         return (!empty($iId)) ? $rStmt->fetch(\PDO::FETCH_OBJ) : $rStmt->fetchAll(\PDO::FETCH_OBJ);
57 57
     }
58 58
 
59
+    /**
60
+     * @param string $iReportId
61
+     */
59 62
     public function delete($iReportId)
60 63
     {
61 64
         $rStmt = Db::getInstance()->prepare('DELETE FROM' . Db::prefix('Report') . 'WHERE reportId = :reportId LIMIT 1');
Please login to merge, or discard this patch.