Completed
Branch master (fad7ff)
by Pierre-Henry
58:19 queued 23:52
created
_protected/framework/Video/Api/Youtube.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     /**
27 27
      * @param string $sUrl
28
-     * @return mixed (string | boolean) Returns the embed video URL if found, FALSE otherwise.
28
+     * @return false|string (string | boolean) Returns the embed video URL if found, FALSE otherwise.
29 29
      */
30 30
     public function getVideo($sUrl)
31 31
     {
Please login to merge, or discard this patch.
_protected/library/FreebieStock/NudityDetector/Image.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     * Get image type if it is one of: .gif, .jpg or .png
62 62
     *
63 63
     * @param string $file Full path to file
64
-    * @return string|boolean
64
+    * @return string|false
65 65
     */
66 66
     static public function type($file) {
67 67
         $type = getimagesize($file);
Please login to merge, or discard this patch.
static/PFBC/recaptchalib.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -211,6 +211,9 @@  discard block
 block discarded – undo
211 211
 
212 212
 /* Mailhide related code */
213 213
 
214
+/**
215
+ * @param string $ky
216
+ */
214 217
 function _recaptcha_aes_encrypt($val,$ky) {
215 218
     if (! function_exists ("mcrypt_encrypt")) {
216 219
         die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed.");
@@ -222,6 +225,9 @@  discard block
 block discarded – undo
222 225
 }
223 226
 
224 227
 
228
+/**
229
+ * @param null|string $x
230
+ */
225 231
 function _recaptcha_mailhide_urlbase64($x) {
226 232
     return strtr(base64_encode ($x), '+/', '-_');
227 233
 }
Please login to merge, or discard this patch.
_protected/framework/Translate/Lang.class.php 1 patch
Doc Comments   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
       * Set the default language name.
49 49
       *
50 50
       * @param string $sNewDefLang Prefix of the language.
51
-      * @return object $this
51
+      * @return Lang $this
52 52
       */
53 53
      public function setDefaultLang($sNewDefLang)
54 54
      {
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
      /**
61 61
       * Set the user language name.
62 62
       *
63
-      * @param string $sNewDefaultLang Prefix of the language.
64
-      * @return object $this
63
+      * @return Lang $this
65 64
       */
66 65
      public function setUserLang($sNewUserLang)
67 66
      {
@@ -120,7 +119,7 @@  discard block
 block discarded – undo
120 119
       *
121 120
       * @param string $sFileName The language filename (e.g., "global").
122 121
       * @param string $sPath If you want to change the default path (the path to the current module), you can specify the path. Default NULL
123
-      * @return object $this
122
+      * @return Lang $this
124 123
       */
125 124
      public function load($sFileName, $sPath = null)
126 125
      {
@@ -134,7 +133,7 @@  discard block
 block discarded – undo
134 133
      /**
135 134
       * Loading language files.
136 135
       *
137
-      * @return object $this
136
+      * @return Lang $this
138 137
       * @throws \PH7\Framework\Translate\Exception If the language file is not found.
139 138
       */
140 139
      public function init()
@@ -202,7 +201,6 @@  discard block
 block discarded – undo
202 201
  /**
203 202
   * Language helper function.
204 203
   *
205
-  * @param string $sVar [, string $... ]
206 204
   * @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).
207 205
   */
208 206
  function t(...$aTokens)
Please login to merge, or discard this patch.
_protected/framework/Image/Image.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
     }
419 419
 
420 420
     /**
421
-     * @return string
421
+     * @return resource
422 422
      */
423 423
     public function getFileName()
424 424
     {
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
     /**
429 429
      * Determine and get the type of the image (even an unallowed image type) by reading the first bytes and checking its signature.
430 430
      *
431
-     * @return string|bool When a correct signature is found, returns the appropriate value, FALSE otherwise.
431
+     * @return integer When a correct signature is found, returns the appropriate value, FALSE otherwise.
432 432
      */
433 433
     public function getType()
434 434
     {
Please login to merge, or discard this patch.
_protected/app/system/modules/admin123/models/ModeratorModel.php 1 patch
Doc Comments   +24 added lines patch added patch discarded remove patch
@@ -12,6 +12,10 @@  discard block
 block discarded – undo
12 12
 class ModeratorModel extends ModeratorCoreModel
13 13
 {
14 14
 
15
+    /**
16
+     * @param integer $iOffset
17
+     * @param integer $iLimit
18
+     */
15 19
     public function getAlbumsPicture($iOffset, $iLimit)
16 20
     {
17 21
         $iOffset = (int)$iOffset;
@@ -25,6 +29,10 @@  discard block
 block discarded – undo
25 29
         return $rStmt->fetchAll(\PDO::FETCH_OBJ);
26 30
     }
27 31
 
32
+    /**
33
+     * @param integer $iOffset
34
+     * @param integer $iLimit
35
+     */
28 36
     public function getPictures($iOffset, $iLimit)
29 37
     {
30 38
         $iOffset = (int)$iOffset;
@@ -38,6 +46,10 @@  discard block
 block discarded – undo
38 46
         return $rStmt->fetchAll(\PDO::FETCH_OBJ);
39 47
     }
40 48
 
49
+    /**
50
+     * @param integer $iOffset
51
+     * @param integer $iLimit
52
+     */
41 53
     public function getAlbumsVideo($iOffset, $iLimit)
42 54
     {
43 55
         $iOffset = (int)$iOffset;
@@ -51,6 +63,10 @@  discard block
 block discarded – undo
51 63
         return $rStmt->fetchAll(\PDO::FETCH_OBJ);
52 64
     }
53 65
 
66
+    /**
67
+     * @param integer $iOffset
68
+     * @param integer $iLimit
69
+     */
54 70
     public function getVideos($iOffset, $iLimit)
55 71
     {
56 72
         $iOffset = (int)$iOffset;
@@ -64,6 +80,10 @@  discard block
 block discarded – undo
64 80
         return $rStmt->fetchAll(\PDO::FETCH_OBJ);
65 81
     }
66 82
 
83
+    /**
84
+     * @param integer $iOffset
85
+     * @param integer $iLimit
86
+     */
67 87
     public function getAvatars($iOffset, $iLimit)
68 88
     {
69 89
         $iOffset = (int)$iOffset;
@@ -76,6 +96,10 @@  discard block
 block discarded – undo
76 96
         return $rStmt->fetchAll(\PDO::FETCH_OBJ);
77 97
     }
78 98
 
99
+    /**
100
+     * @param integer $iOffset
101
+     * @param integer $iLimit
102
+     */
79 103
     public function getBackgrounds($iOffset, $iLimit)
80 104
     {
81 105
         $iOffset = (int)$iOffset;
Please login to merge, or discard this patch.
_protected/framework/Layout/Html/Design.class.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -260,6 +260,11 @@  discard block
 block discarded – undo
260 260
         }
261 261
     }
262 262
 
263
+    /**
264
+     * @param string $sModule
265
+     * @param string $sController
266
+     * @param string $sAction
267
+     */
263 268
     public function url($sModule, $sController, $sAction, $sVars = null, $bClear = true)
264 269
     {
265 270
         $sUrl = Uri::get($sModule, $sController, $sAction, $sVars, $bClear);
@@ -527,7 +532,7 @@  discard block
 block discarded – undo
527 532
      * @internal If it's an IPv6, show only the beginning, otherwise it would be too long in the template.
528 533
      * @param string $sIp Allows to speciy another IP address than the client one.
529 534
      * @param boolean $bPrint Print or Return the HTML code. Default TRUE
530
-     * @return mixed (string | void)
535
+     * @return null|string (string | void)
531 536
      */
532 537
     public function ip($sIp = null, $bPrint = true)
533 538
     {
@@ -544,7 +549,7 @@  discard block
 block discarded – undo
544 549
      * Show the geolocation of the user (with link that points to the Country controller).
545 550
      *
546 551
      * @param boolean $bPrint Print or Return the HTML code. Default TRUE
547
-     * @return mixed (string | void)
552
+     * @return null|string (string | void)
548 553
      */
549 554
     public function geoIp($bPrint = true)
550 555
     {
@@ -576,7 +581,7 @@  discard block
 block discarded – undo
576 581
     /**
577 582
      * Get the User Avatar.
578 583
      *
579
-     * @param string $sUername
584
+     * @param string $sUsername
580 585
      * @param string $sSex
581 586
      * @param integer $iSize
582 587
      * @return void Html contents. URL avatar default 150px or the user avatar.
Please login to merge, or discard this patch.
_protected/framework/File/File.class.php 1 patch
Doc Comments   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -125,6 +125,7 @@  discard block
 block discarded – undo
125 125
      * Check if file exists.
126 126
      *
127 127
      * @param mixed (array | string) $mFile
128
+     * @param string $mFile
128 129
      * @return boolean TRUE if file exists, FALSE otherwise.
129 130
      */
130 131
     public function existFile($mFile)
@@ -278,6 +279,7 @@  discard block
 block discarded – undo
278 279
      *
279 280
      * @param mixed (string | array) $mDir
280 281
      * @param integer (octal) $iMode Default: 0777
282
+     * @param string $mDir
281 283
      * @return void
282 284
      * @throws Exception If the file cannot be created.
283 285
      */
@@ -326,7 +328,7 @@  discard block
 block discarded – undo
326 328
      *
327 329
      * @param string $sFrom File or directory.
328 330
      * @param string $sTo File or directory.
329
-     * @return mixed (integer | boolean) Returns the last line on success, and FALSE on failure.
331
+     * @return string|false (integer | boolean) Returns the last line on success, and FALSE on failure.
330 332
      */
331 333
     public function systemCopy($sFrom, $sTo)
332 334
     {
@@ -368,7 +370,7 @@  discard block
 block discarded – undo
368 370
      *
369 371
      * @param string $sFrom File or directory.
370 372
      * @param string $sTo File or directory.
371
-     * @return mixed (integer | boolean) Returns the last line on success, and FALSE on failure.
373
+     * @return string|false (integer | boolean) Returns the last line on success, and FALSE on failure.
372 374
      */
373 375
     public function systemRename($sFrom, $sTo)
374 376
     {
@@ -422,6 +424,7 @@  discard block
 block discarded – undo
422 424
      * Get the creation/modification time of a file in the Unix timestamp.
423 425
      *
424 426
      * @param string Full path of the file.
427
+     * @param string $sFile
425 428
      * @return mixed (integer | boolean) Returns the time the file was last modified, or FALSE if it not found.
426 429
      */
427 430
     public function getModifTime($sFile)
@@ -434,6 +437,7 @@  discard block
 block discarded – undo
434 437
      * Shortened form of self::getModifTime()
435 438
      *
436 439
      * @param string Full path of the file.
440
+     * @param string $sFile
437 441
      * @return integer Returns the latest modification time of the file in Unix timestamp.
438 442
      */
439 443
     public static function version($sFile)
@@ -445,7 +449,7 @@  discard block
 block discarded – undo
445 449
      * Delay script execution.
446 450
      *
447 451
      * @param integer $iSleep Halt time in seconds. Optional parameter, default value is 5.
448
-     * @return mixed (integer | boolean) Returns "0" on success, or "false" on error.
452
+     * @return integer (integer | boolean) Returns "0" on success, or "false" on error.
449 453
      */
450 454
     public function sleep($iSleep = null)
451 455
     {
@@ -689,7 +693,7 @@  discard block
 block discarded – undo
689 693
      * Get the URL contents (For URLs, it is better to use CURL because it is faster than file_get_contents function).
690 694
      *
691 695
      * @param string $sUrl URL to be read contents.
692
-     * @return mixed (string | boolean) Return the result content on success, FALSE on failure.
696
+     * @return string (string | boolean) Return the result content on success, FALSE on failure.
693 697
      */
694 698
     public function getUrlContents($sUrl)
695 699
     {
@@ -763,7 +767,7 @@  discard block
 block discarded – undo
763 767
      * Create a recurive directory iterator for a given directory.
764 768
      *
765 769
      * @param string $sPath
766
-     * @return string The directory.
770
+     * @return \RecursiveDirectoryIterator The directory.
767 771
      */
768 772
     public function getDirIterator($sPath)
769 773
     {
Please login to merge, or discard this patch.
_protected/framework/Navigation/Browser.class.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     /**
45 45
      * Active browser cache.
46 46
      *
47
-     * @return object this
47
+     * @return Browser this
48 48
      */
49 49
     public function cache()
50 50
     {
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     /**
60 60
      * Prevent caching in the browser.
61 61
      *
62
-     * @return object this
62
+     * @return Browser this
63 63
      */
64 64
     public function noCache()
65 65
     {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * Are we capable to receive gzipped data?
79 79
      *
80
-     * @return mixed (string | boolean) Returns the encoding if it is accepted, false otherwise. Maybe additional check for Mac OS...
80
+     * @return false|string (string | boolean) Returns the encoding if it is accepted, false otherwise. Maybe additional check for Mac OS...
81 81
      */
82 82
     public function encoding()
83 83
     {
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     }
145 145
 
146 146
     /**
147
-     * @return mixed (string | null) The HTTP User Agent is it exists, otherwise the NULL value.
147
+     * @return string (string | null) The HTTP User Agent is it exists, otherwise the NULL value.
148 148
      */
149 149
     public function getUserAgent()
150 150
     {
Please login to merge, or discard this patch.