Completed
Branch master (0538db)
by Pierre-Henry
32:46
created
_protected/app/system/modules/video/models/VideoModel.php 1 patch
Doc Comments   +34 added lines patch added patch discarded remove patch
@@ -12,6 +12,10 @@  discard block
 block discarded – undo
12 12
 
13 13
 class VideoModel extends VideoCoreModel
14 14
 {
15
+    /**
16
+     * @param string $sTitle
17
+     * @param string $sThumb
18
+     */
15 19
     public function addAlbum($iProfileId, $sTitle, $sDescription, $sThumb, $sCreatedDate, $iApproved = 1)
16 20
     {
17 21
         $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('AlbumsVideos') . '(profileId, name, description, thumb, createdDate, approved)
@@ -27,6 +31,14 @@  discard block
 block discarded – undo
27 31
         return $rStmt->execute();
28 32
     }
29 33
 
34
+    /**
35
+     * @param string $iProfileId
36
+     * @param integer $iAlbumId
37
+     * @param string $sTitle
38
+     * @param string $sFile
39
+     * @param string $sThumb
40
+     * @param string $sCreatedDate
41
+     */
30 42
     public function addVideo($iProfileId, $iAlbumId, $sTitle, $sDescription, $sFile, $sThumb, $sDuration, $sCreatedDate, $iApproved = 1)
31 43
     {
32 44
         $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('Videos') . '(profileId, albumId, title, description, file, thumb, duration, createdDate, approved)
@@ -54,6 +66,9 @@  discard block
 block discarded – undo
54 66
         return $rStmt->execute();
55 67
     }
56 68
 
69
+    /**
70
+     * @param string $iProfileId
71
+     */
57 72
     public function getAlbumsName($iProfileId)
58 73
     {
59 74
         $this->cache->start(self::CACHE_GROUP, 'albumName' . $iProfileId, static::CACHE_TIME);
@@ -71,6 +86,13 @@  discard block
 block discarded – undo
71 86
         return $oData;
72 87
     }
73 88
 
89
+    /**
90
+     * @param string $iProfileId
91
+     * @param string $iAlbumId
92
+     * @param string $iVideoId
93
+     * @param integer $iOffset
94
+     * @param integer $iLimit
95
+     */
74 96
     public function video($iProfileId, $iAlbumId, $iVideoId = null, $iApproved = 1, $iOffset, $iLimit)
75 97
     {
76 98
         $this->cache->start(self::CACHE_GROUP, 'video' . $iProfileId . $iAlbumId . $iVideoId . $iApproved . $iOffset . $iLimit, static::CACHE_TIME);
@@ -137,6 +159,10 @@  discard block
 block discarded – undo
137 159
         return $iData;
138 160
     }
139 161
 
162
+    /**
163
+     * @param integer $iAlbumId
164
+     * @param string $sTitle
165
+     */
140 166
     public function updateAlbum($iProfileId, $iAlbumId, $sTitle, $sDescription, $sUpdatedDate)
141 167
     {
142 168
         $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('AlbumsVideos') . 'SET name =:name, description =:description, updatedDate =:updatedDate
@@ -151,6 +177,14 @@  discard block
 block discarded – undo
151 177
         return $rStmt->execute();
152 178
     }
153 179
 
180
+    /**
181
+     * @param string $iProfileId
182
+     * @param integer $iAlbumId
183
+     * @param integer $iVideoId
184
+     * @param string $sTitle
185
+     * @param string $sDescription
186
+     * @param string $sUpdatedDate
187
+     */
154 188
     public function updateVideo($iProfileId, $iAlbumId, $iVideoId, $sTitle, $sDescription, $sUpdatedDate)
155 189
     {
156 190
         $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('Videos') . 'SET title =:title, description =:description, updatedDate =:updatedDate
Please login to merge, or discard this patch.
_protected/framework/Cache/Cache.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      * Gets the data cache.
167 167
      *
168 168
      * @param bool $bPrint Default FALSE
169
-     * @return bool|int|float|string|array|object Returns the converted cache value if successful, FALSE otherwise.
169
+     * @return \stdClass Returns the converted cache value if successful, FALSE otherwise.
170 170
      */
171 171
     public function get($bPrint = false)
172 172
     {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      *
185 185
      * @param string $sData
186 186
      *
187
-     * @return string|null|self If the cache is disabled, returns null, otherwise returns this class.
187
+     * @return null|Cache If the cache is disabled, returns null, otherwise returns this class.
188 188
      */
189 189
     public function put($sData)
190 190
     {
Please login to merge, or discard this patch.
_protected/framework/Compress/Compress.class.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@  discard block
 block discarded – undo
72 72
         $this->bIsGoogleClosure = (bool)Config::getInstance()->values['cache']['enable.js.closure_compiler_service'];
73 73
     }
74 74
 
75
+    /**
76
+     * @param string $sPhp
77
+     */
75 78
     public function parsePhp($sPhp)
76 79
     {
77 80
         $sPhp = preg_replace('#/\*.*+\*#', '', $sPhp); # Removing PHP comments
@@ -80,6 +83,9 @@  discard block
 block discarded – undo
80 83
         return $sPhp;
81 84
     }
82 85
 
86
+    /**
87
+     * @return string
88
+     */
83 89
     public function parseHtml($sHtml)
84 90
     {
85 91
         preg_match_all('!(<(?:code|pre).*>[^<]+</(?:code|pre)>)!', $sHtml, $aPre); # Exclude pre or code tags
@@ -98,6 +104,9 @@  discard block
 block discarded – undo
98 104
         return $sHtml;
99 105
     }
100 106
 
107
+    /**
108
+     * @param string $sContent
109
+     */
101 110
     public function parseCss($sContent)
102 111
     {
103 112
         if ($this->bJavaCompiler) {
@@ -149,6 +158,9 @@  discard block
 block discarded – undo
149 158
         return $sCssMinified;
150 159
     }
151 160
 
161
+    /**
162
+     * @param string $sContent
163
+     */
152 164
     public function parseJs($sContent)
153 165
     {
154 166
         if ($this->bJavaCompiler) {
Please login to merge, or discard this patch.
_protected/framework/File/File.class.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * Check if file exists.
140 140
      *
141
-     * @param array|string $mFile
141
+     * @param string $mFile
142 142
      *
143 143
      * @return boolean TRUE if file exists, FALSE otherwise.
144 144
      */
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
      * @param string $sFrom File or directory.
341 341
      * @param string $sTo File or directory.
342 342
      *
343
-     * @return integer|boolean Returns the last line on success, and FALSE on failure.
343
+     * @return string|false Returns the last line on success, and FALSE on failure.
344 344
      */
345 345
     public function systemCopy($sFrom, $sTo)
346 346
     {
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
      * @param string $sFrom File or directory.
391 391
      * @param string $sTo File or directory.
392 392
      *
393
-     * @return integer|boolean Returns the last line on success, and FALSE on failure.
393
+     * @return string|false Returns the last line on success, and FALSE on failure.
394 394
      */
395 395
     public function systemRename($sFrom, $sTo)
396 396
     {
Please login to merge, or discard this patch.
_protected/framework/Layout/Form/Engine/PFBC/Form.class.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -135,6 +135,9 @@  discard block
 block discarded – undo
135 135
         return $valid;
136 136
     }
137 137
 
138
+    /**
139
+     * @param string $id
140
+     */
138 141
     private static function recover($id)
139 142
     {
140 143
         if (!empty($_SESSION['pfbc'][$id]['form'])) {
@@ -158,6 +161,9 @@  discard block
 block discarded – undo
158 161
         }
159 162
     }
160 163
 
164
+    /**
165
+     * @param string $id
166
+     */
161 167
     public static function setSessionValue($id, $element, $value)
162 168
     {
163 169
         $_SESSION['pfbc'][$id]['values'][$element] = $value;
@@ -166,6 +172,7 @@  discard block
 block discarded – undo
166 172
     /**
167 173
      * Validation errors are saved in the session after the form submission, and will be displayed to the user
168 174
      * when redirected back to the form.
175
+     * @param string $id
169 176
      */
170 177
     public static function setError($id, $messages, $element = '')
171 178
     {
@@ -204,6 +211,9 @@  discard block
 block discarded – undo
204 211
         }
205 212
     }
206 213
 
214
+    /**
215
+     * @param string $id
216
+     */
207 217
     public static function setSuccess($id, $message, $element = '')
208 218
     {
209 219
         return (new Design)->setFlashMsg($message, Design::SUCCESS_TYPE);
Please login to merge, or discard this patch.
_protected/framework/Mvc/Model/Engine/Db.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
      *
273 273
      * @param string $sStatement
274 274
      *
275
-     * @return mixed
275
+     * @return string
276 276
      */
277 277
     public function queryFetchColAssoc($sStatement)
278 278
     {
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
     /**
319 319
      * Count the number of requests.
320 320
      *
321
-     * @return float number
321
+     * @return integer number
322 322
      */
323 323
     public static function queryCount()
324 324
     {
Please login to merge, or discard this patch.
_protected/framework/Translate/Adapter/Gettext/gettext.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,6 +81,9 @@  discard block
 block discarded – undo
81 81
         }
82 82
     }
83 83
 
84
+    /**
85
+     * @param integer $bytes
86
+     */
84 87
     function read($bytes)
85 88
     {
86 89
         return $this->STREAM->read($bytes);
@@ -90,6 +93,7 @@  discard block
 block discarded – undo
90 93
      * Reads an array of Integers from the Stream
91 94
      *
92 95
      * @param int count How many elements should be read
96
+     * @param integer $count
93 97
      * @return Array of Integers
94 98
      */
95 99
     function readintarray($count)
@@ -108,6 +112,7 @@  discard block
 block discarded – undo
108 112
      *
109 113
      * @param object Reader the StreamReader object
110 114
      * @param boolean enable_cache Enable or disable caching of strings (default on)
115
+     * @param FileReader|null $Reader
111 116
      */
112 117
     public function __construct($Reader, $enable_cache = true)
113 118
     {
@@ -184,6 +189,7 @@  discard block
 block discarded – undo
184 189
      *
185 190
      * @access private
186 191
      * @param int num Offset number of original string
192
+     * @param integer $num
187 193
      * @return string Requested string if found, otherwise ''
188 194
      */
189 195
     function get_original_string($num)
@@ -202,6 +208,7 @@  discard block
 block discarded – undo
202 208
      *
203 209
      * @access private
204 210
      * @param int num Offset number of original string
211
+     * @param integer $num
205 212
      * @return string Requested string if found, otherwise ''
206 213
      */
207 214
     function get_translation_string($num)
@@ -290,6 +297,7 @@  discard block
 block discarded – undo
290 297
      * Sanitize plural form expression for use in PHP eval call.
291 298
      *
292 299
      * @access private
300
+     * @param string $expr
293 301
      * @return string sanitized plural form expression
294 302
      */
295 303
     function sanitize_plural_expression($expr)
@@ -395,7 +403,8 @@  discard block
 block discarded – undo
395 403
      * @param string single
396 404
      * @param string plural
397 405
      * @param string number
398
-     * @return translated plural form
406
+     * @param string $single
407
+     * @return string plural form
399 408
      */
400 409
     function ngettext($single, $plural, $number)
401 410
     {
Please login to merge, or discard this patch.
_protected/framework/Translate/Adapter/Gettext/streams.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -106,6 +106,9 @@
 block discarded – undo
106 106
     var $_fd;
107 107
     var $_length;
108 108
 
109
+    /**
110
+     * @param string $filename
111
+     */
109 112
     public function __construct($filename)
110 113
     {
111 114
         if (file_exists($filename)) {
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
@@ -227,7 +227,6 @@
 block discarded – undo
227 227
     /**
228 228
      * Language helper function.
229 229
      *
230
-     * @param string $sVar [, string $... ]
231 230
      *
232 231
      * @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).
233 232
      */
Please login to merge, or discard this patch.