Completed
Branch master (2d4977)
by Michael
03:20
created
class/smartuploader.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,11 +99,10 @@
 block discarded – undo
99 99
      * Constructor
100 100
      *
101 101
      * @param string $uploadDir
102
-     * @param array $allowedMimeTypes
102
+     * @param integer $allowedMimeTypes
103 103
      * @param int $maxFileSize
104 104
      * @param int $maxWidth
105 105
      * @param int $maxHeight
106
-     * @param int $cmodvalue
107 106
      */
108 107
     function SmartUploader($uploadDir, $allowedMimeTypes = 0, $maxFileSize, $maxWidth = 0, $maxHeight = 0)
109 108
     {
Please login to merge, or discard this patch.
include/captcha/captcha.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -81,6 +81,12 @@
 block discarded – undo
81 81
 
82 82
     /**
83 83
      * Initializing the CAPTCHA class
84
+     * @param boolean $skipmember
85
+     * @param integer $num_chars
86
+     * @param integer $fontsize_min
87
+     * @param integer $fontsize_max
88
+     * @param integer $background_type
89
+     * @param integer $background_num
84 90
      */
85 91
     function init($name = 'xoopscaptcha', $skipmember = null, $num_chars = null, $fontsize_min = null, $fontsize_max = null, $background_type = null, $background_num = null)
86 92
     {
Please login to merge, or discard this patch.
include/captcha/scripts/img.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,6 +174,9 @@  discard block
 block discarded – undo
174 174
         imagedestroy($this->oImage);
175 175
     }
176 176
 
177
+    /**
178
+     * @param string $name
179
+     */
177 180
     function _getList($name, $extension = "")
178 181
     {
179 182
         $items = array();
@@ -235,7 +238,7 @@  discard block
 block discarded – undo
235 238
     /**
236 239
      * Return random background
237 240
      *
238
-     * @return array
241
+     * @return string|null
239 242
      */
240 243
     function loadBackground()
241 244
     {
Please login to merge, or discard this patch.
include/functions.php 1 patch
Doc Comments   +26 added lines patch added patch discarded remove patch
@@ -53,6 +53,9 @@  discard block
 block discarded – undo
53 53
     }
54 54
     return $xoops22;
55 55
 }
56
+/**
57
+ * @return string
58
+ */
56 59
 function smart_getModuleName($withLink = true, $forBreadCrumb = false, $moduleName = false) {
57 60
     if (!$moduleName) {
58 61
         global $xoopsModule;
@@ -189,6 +192,9 @@  discard block
 block discarded – undo
189 192
     }
190 193
     return $value;
191 194
 }
195
+/**
196
+ * @return boolean|string
197
+ */
192 198
 function smart_getCurrentModuleName() {
193 199
     global $xoopsModule;
194 200
     if (is_object($xoopsModule)) {
@@ -240,6 +246,9 @@  discard block
 block discarded – undo
240 246
     $truncated_string = xoops_substr($str, $start, $length - $position_of_space +strlen($trimmarker), $trimmarker);
241 247
     return $truncated_string;
242 248
 }
249
+/**
250
+ * @param string $key
251
+ */
243 252
 function smart_getConfig($key, $moduleName = false, $default = 'default_is_undefined') {
244 253
     if (!$moduleName) {
245 254
         $moduleName = smart_getCurrentModuleName();
@@ -293,6 +302,7 @@  discard block
 block discarded – undo
293 302
 }
294 303
 /**
295 304
  * Thanks to the NewBB2 Development Team
305
+ * @param string $target
296 306
  */
297 307
 function smart_admin_mkdir($target) {
298 308
     // http://www.php.net/manual/en/function.mkdir.php
@@ -556,11 +566,17 @@  discard block
 block discarded – undo
556 566
      }
557 567
      */
558 568
 }
569
+/**
570
+ * @param string $name
571
+ */
559 572
 function smart_close_collapsable($name) {
560 573
     echo "</div>";
561 574
     smart_openclose_collapsable($name);
562 575
     echo "<br />";
563 576
 }
577
+/**
578
+ * @param string $name
579
+ */
564 580
 function smart_setCookieVar($name, $value, $time = 0) {
565 581
     if ($time == 0) {
566 582
         $time = time() + 3600 * 24 * 365;
@@ -568,6 +584,9 @@  discard block
 block discarded – undo
568 584
     }
569 585
     setcookie($name, $value, $time, '/');
570 586
 }
587
+/**
588
+ * @param string $name
589
+ */
571 590
 function smart_getCookieVar($name, $default = '') {
572 591
     $name = str_replace('.', '_', $name);
573 592
     if ((isset ($_COOKIE[$name])) && ($_COOKIE[$name] > '')) {
@@ -673,6 +692,9 @@  discard block
 block discarded – undo
673 692
     $text = str_replace('{X_ADMINMAIL}', $xoopsConfig['adminmail'], $text);
674 693
     return $text;
675 694
 }
695
+/**
696
+ * @param string $src
697
+ */
676 698
 function smart_addScript($src) {
677 699
     echo '<script src="' . $src . '" type="text/javascript"></script>';
678 700
 }
@@ -791,6 +813,10 @@  discard block
 block discarded – undo
791 813
     return $text;
792 814
 }
793 815
 
816
+/**
817
+ * @param string $module
818
+ * @param string $file
819
+ */
794 820
 function smart_loadLanguageFile($module, $file) {
795 821
     global $xoopsConfig;
796 822
 
Please login to merge, or discard this patch.