Completed
Push — master ( e162f1...f964ff )
by Michael
11:01
created
htdocs/include/functions.php 1 patch
Doc Comments   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 /**
21 21
  * xoops_getHandler()
22 22
  *
23
- * @param mixed $name
23
+ * @param string $name
24 24
  * @param mixed $optional
25 25
  *
26 26
  * @return XoopsObjectHandler|false
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 /**
54 54
  * xoops_getModuleHandler()
55 55
  *
56
- * @param mixed $name
56
+ * @param string $name
57 57
  * @param mixed $module_dir
58 58
  * @param mixed $optional
59 59
  * @return XoopsObjectHandler|false
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 /**
301 301
  * xoops_error
302 302
  *
303
- * @param mixed  $msg
303
+ * @param string  $msg
304 304
  * @param string $title
305 305
  * @return void
306 306
  */
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
  *
395 395
  * @param mixed  $time
396 396
  * @param string $timeoffset
397
- * @return int
397
+ * @return double
398 398
  */
399 399
 function xoops_getUserTimestamp($time, $timeoffset = '')
400 400
 {
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
  * formatURL()
591 591
  *
592 592
  * @param mixed $url
593
- * @return mixed|string
593
+ * @return string
594 594
  */
595 595
 function formatURL($url)
596 596
 {
@@ -671,7 +671,7 @@  discard block
 block discarded – undo
671 671
 
672 672
 /**
673 673
  * Function to redirect a user to certain pages
674
- * @param        $url
674
+ * @param        string $url
675 675
  * @param int    $time
676 676
  * @param string $message
677 677
  * @param bool   $addredirect
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
 /**
756 756
  * xoops_getenv()
757 757
  *
758
- * @param mixed $key
758
+ * @param string $key
759 759
  * @return string
760 760
  */
761 761
 function xoops_getenv($key)
@@ -842,7 +842,7 @@  discard block
 block discarded – undo
842 842
  * xoops_getrank()
843 843
  *
844 844
  * @param integer $rank_id
845
- * @param mixed   $posts
845
+ * @param integer   $posts
846 846
  * @return
847 847
  */
848 848
 function xoops_getrank($rank_id = 0, $posts = 0)
@@ -1045,7 +1045,7 @@  discard block
 block discarded – undo
1045 1045
 /**
1046 1046
  * xoops_getOption()
1047 1047
  *
1048
- * @param mixed $option
1048
+ * @param string $option
1049 1049
  * @internal param string $type
1050 1050
  * @deprecated
1051 1051
  * @return string
@@ -1066,7 +1066,7 @@  discard block
 block discarded – undo
1066 1066
 /**
1067 1067
  * xoops_getConfigOption()
1068 1068
  *
1069
- * @param mixed  $option
1069
+ * @param string  $option
1070 1070
  * @param array|string $type
1071 1071
  * @internal param string $dirname
1072 1072
  * @deprecated
@@ -1098,7 +1098,7 @@  discard block
 block discarded – undo
1098 1098
 /**
1099 1099
  * xoops_setConfigOption()
1100 1100
  *
1101
- * @param mixed $option
1101
+ * @param string $option
1102 1102
  * @param null  $new
1103 1103
  * @return void
1104 1104
 @deprecated
@@ -1118,7 +1118,7 @@  discard block
 block discarded – undo
1118 1118
  *
1119 1119
  * Method for module developers getting a module config item. This could be from any module requested.
1120 1120
  *
1121
- * @param mixed  $option
1121
+ * @param string  $option
1122 1122
  * @param string $dirname
1123 1123
  * @return bool
1124 1124
 @deprecated
Please login to merge, or discard this patch.
htdocs/include/old_functions.php 1 patch
Doc Comments   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -219,31 +219,31 @@
 block discarded – undo
219 219
 /**
220 220
  * showThread :: DO NOT USE
221 221
  *
222
- * @param unknown_type         $color_number
223
- * @param unknown_type         $subject_image
222
+ * @param integer         $color_number
223
+ * @param string         $subject_image
224 224
  * @param unknown_type         $subject
225 225
  * @param unknown_type         $text
226
- * @param unknown_type         $post_date
227
- * @param unknown_type         $ip_image
228
- * @param unknown_type         $reply_image
229
- * @param unknown_type         $edit_image
230
- * @param unknown_type         $delete_image
226
+ * @param string         $post_date
227
+ * @param string         $ip_image
228
+ * @param string         $reply_image
229
+ * @param string         $edit_image
230
+ * @param string         $delete_image
231 231
  * @param string|\unknown_type $username
232 232
  * @param string|\unknown_type $rank_title
233 233
  * @param string|\unknown_type $rank_image
234
- * @param string|\unknown_type $avatar_image
235
- * @param string|\unknown_type $reg_date
236
- * @param string|\unknown_type $posts
237
- * @param string|\unknown_type $user_from
238
- * @param string|\unknown_type $online_image
239
- * @param string|\unknown_type $profile_image
240
- * @param string|\unknown_type $pm_image
241
- * @param string|\unknown_type $email_image
242
- * @param string|\unknown_type $www_image
243
- * @param string|\unknown_type $icq_image
244
- * @param string|\unknown_type $aim_image
245
- * @param string|\unknown_type $yim_image
246
- * @param string|\unknown_type $msnm_image
234
+ * @param string $avatar_image
235
+ * @param string $reg_date
236
+ * @param string $posts
237
+ * @param string $user_from
238
+ * @param string $online_image
239
+ * @param string $profile_image
240
+ * @param string $pm_image
241
+ * @param string $email_image
242
+ * @param string $www_image
243
+ * @param string $icq_image
244
+ * @param string $aim_image
245
+ * @param string $yim_image
246
+ * @param string $msnm_image
247 247
  */
248 248
 function showThread($color_number, $subject_image, $subject, $text, $post_date, $ip_image, $reply_image, $edit_image, $delete_image, $username = '', $rank_title = '', $rank_image = '', $avatar_image = '', $reg_date = '', $posts = '', $user_from = '', $online_image = '', $profile_image = '', $pm_image = '', $email_image = '', $www_image = '', $icq_image = '', $aim_image = '', $yim_image = '', $msnm_image = '')
249 249
 {
Please login to merge, or discard this patch.
htdocs/modules/system/class/avatar.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
      * Create new Object
115 115
      *
116 116
      * @param  bool $isNew
117
-     * @return object
117
+     * @return SystemAvatar
118 118
      */
119 119
     public function create($isNew = true)
120 120
     {
Please login to merge, or discard this patch.
htdocs/modules/system/class/thumbs/phpthumb.gif.php 1 patch
Doc Comments   +46 added lines patch added patch discarded remove patch
@@ -64,6 +64,9 @@  discard block
 block discarded – undo
64 64
 
65 65
 ///////////////////////////////////////////////////////////////////////////////////////////////////
66 66
 
67
+/**
68
+ * @param string $lpszFileName
69
+ */
67 70
 function gif_outputAsBmp($gif, $lpszFileName, $bgColor = -1)
68 71
 {
69 72
 	if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
@@ -186,6 +189,10 @@  discard block
 block discarded – undo
186 189
 
187 190
 	///////////////////////////////////////////////////////////////////////////
188 191
 
192
+	/**
193
+	 * @param string $data
194
+	 * @param integer $datLen
195
+	 */
189 196
 	function deCompress($data, &$datLen)
190 197
 	{
191 198
 		$stLen  = strlen($data);
@@ -210,6 +217,11 @@  discard block
 block discarded – undo
210 217
 
211 218
 	///////////////////////////////////////////////////////////////////////////
212 219
 
220
+	/**
221
+	 * @param boolean $bInit
222
+	 *
223
+	 * @return integer
224
+	 */
213 225
 	function LZWCommand(&$data, $bInit)
214 226
 	{
215 227
 		if ($bInit) {
@@ -392,6 +404,10 @@  discard block
 block discarded – undo
392 404
 
393 405
 	///////////////////////////////////////////////////////////////////////////
394 406
 
407
+	/**
408
+	 * @param string $lpData
409
+	 * @param integer $num
410
+	 */
395 411
 	function load($lpData, $num)
396 412
 	{
397 413
 		$this->m_nColors  = 0;
@@ -504,6 +520,9 @@  discard block
 block discarded – undo
504 520
 
505 521
 	///////////////////////////////////////////////////////////////////////////
506 522
 
523
+	/**
524
+	 * @param integer $hdrLen
525
+	 */
507 526
 	function load($lpData, &$hdrLen)
508 527
 	{
509 528
 		$hdrLen = 0;
@@ -541,6 +560,9 @@  discard block
 block discarded – undo
541 560
 
542 561
 	///////////////////////////////////////////////////////////////////////////
543 562
 
563
+	/**
564
+	 * @param string $str
565
+	 */
544 566
 	function w2i($str)
545 567
 	{
546 568
 		return ord(substr($str, 0, 1)) + (ord(substr($str, 1, 1)) << 8);
@@ -579,6 +601,10 @@  discard block
 block discarded – undo
579 601
 
580 602
 	///////////////////////////////////////////////////////////////////////////
581 603
 
604
+	/**
605
+	 * @param string $lpData
606
+	 * @param integer $hdrLen
607
+	 */
582 608
 	function load($lpData, &$hdrLen)
583 609
 	{
584 610
 		$hdrLen = 0;
@@ -612,6 +638,9 @@  discard block
 block discarded – undo
612 638
 
613 639
 	///////////////////////////////////////////////////////////////////////////
614 640
 
641
+	/**
642
+	 * @param string $str
643
+	 */
615 644
 	function w2i($str)
616 645
 	{
617 646
 		return ord(substr($str, 0, 1)) + (ord(substr($str, 1, 1)) << 8);
@@ -649,6 +678,10 @@  discard block
 block discarded – undo
649 678
 
650 679
 	///////////////////////////////////////////////////////////////////////////
651 680
 
681
+	/**
682
+	 * @param string $data
683
+	 * @param integer $datLen
684
+	 */
652 685
 	function load($data, &$datLen)
653 686
 	{
654 687
 		$datLen = 0;
@@ -696,6 +729,10 @@  discard block
 block discarded – undo
696 729
 
697 730
 	///////////////////////////////////////////////////////////////////////////
698 731
 
732
+	/**
733
+	 * @param string $data
734
+	 * @param integer $extLen
735
+	 */
699 736
 	function skipExt(&$data, &$extLen)
700 737
 	{
701 738
 		$extLen = 0;
@@ -741,6 +778,9 @@  discard block
 block discarded – undo
741 778
 
742 779
 	///////////////////////////////////////////////////////////////////////////
743 780
 
781
+	/**
782
+	 * @param string $str
783
+	 */
744 784
 	function w2i($str)
745 785
 	{
746 786
 		return ord(substr($str, 0, 1)) + (ord(substr($str, 1, 1)) << 8);
@@ -814,6 +854,9 @@  discard block
 block discarded – undo
814 854
 
815 855
 	///////////////////////////////////////////////////////////////////////////
816 856
 
857
+	/**
858
+	 * @param integer $iIndex
859
+	 */
817 860
 	function loadFile($lpszFileName, $iIndex)
818 861
 	{
819 862
 		if ($iIndex < 0) {
@@ -967,6 +1010,9 @@  discard block
 block discarded – undo
967 1010
 
968 1011
 	///////////////////////////////////////////////////////////////////////////
969 1012
 
1013
+	/**
1014
+	 * @param integer $bgColor
1015
+	 */
970 1016
 	function getPng($bgColor)
971 1017
 	{
972 1018
 		$out = '';
Please login to merge, or discard this patch.
modules/protector/filters_disabled/postcommon_post_language_match.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
     /**
117 117
      * Execute the filter
118 118
      *
119
-     * @return bool
119
+     * @return boolean|null
120 120
      */
121 121
     public function execute()
122 122
     {
Please login to merge, or discard this patch.
modules/protector/filters_disabled/postcommon_post_stopforumspam.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     protected $minimumConfidence = 65.0; // set at your desired threshold
24 24
 
25 25
     /**
26
-     * @return bool
26
+     * @return boolean|null
27 27
      */
28 28
     public function execute()
29 29
     {
Please login to merge, or discard this patch.
xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/Length.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      * @param string $string
35 35
      * @param HTMLPurifier_Config $config
36 36
      * @param HTMLPurifier_Context $context
37
-     * @return bool|string
37
+     * @return false|string
38 38
      */
39 39
     public function validate($string, $config, $context)
40 40
     {
Please login to merge, or discard this patch.
xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/HTML/Pixels.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * @param string $string
25 25
      * @param HTMLPurifier_Config $config
26 26
      * @param HTMLPurifier_Context $context
27
-     * @return bool|string
27
+     * @return string|false
28 28
      */
29 29
     public function validate($string, $config, $context)
30 30
     {
Please login to merge, or discard this patch.
htdocs/class/cache/xoopscache.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * Tries to find and include a file for a cache engine and returns object instance
80 80
      *
81 81
      * @param  $name Name of the engine
82
-     * @return mixed $engine object or null
82
+     * @return boolean $engine object or null
83 83
      * @access private
84 84
      */
85 85
     private function loadEngine($name)
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      *
207 207
      * @param  string $key       Identifier for the data
208 208
      * @param  mixed  $value     Data to be cached - anything except a resource
209
-     * @param  mixed  $duration  Optional - string configuration name OR how long to cache the data, either in seconds or a
209
+     * @param  string  $duration  Optional - string configuration name OR how long to cache the data, either in seconds or a
210 210
      *                           string that can be parsed by the strtotime() function OR array('config' => 'default', 'duration' => '3600')
211 211
      * @return boolean True if the data was successfully cached, false on failure
212 212
      * @access public
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
      * generates a safe key
385 385
      *
386 386
      * @param  string $key the key passed over
387
-     * @return mixed  string $key or false
387
+     * @return false|string  string $key or false
388 388
      * @access private
389 389
      */
390 390
     public function key($key)
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
      * @param  string $key      Identifier for the data
450 450
      * @param  mixed  $value    Data to be cached
451 451
      * @param  mixed  $duration How long to cache the data, in seconds
452
-     * @return boolean True if the data was successfully cached, false on failure
452
+     * @return boolean|null True if the data was successfully cached, false on failure
453 453
      * @access public
454 454
      */
455 455
     public function write($key, $value, $duration = null)
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
      * Delete a key from the cache
474 474
      *
475 475
      * @param  string $key Identifier for the data
476
-     * @return boolean True if the value was successfully deleted, false if it didn't exist or couldn't be removed
476
+     * @return boolean|null True if the value was successfully deleted, false if it didn't exist or couldn't be removed
477 477
      * @access public
478 478
      */
479 479
     public function delete($key)
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
      * Delete all keys from the cache
485 485
      *
486 486
      * @param  boolean $check if true will check expiration, otherwise delete all
487
-     * @return boolean True if the cache was successfully cleared, false otherwise
487
+     * @return boolean|null True if the cache was successfully cleared, false otherwise
488 488
      * @access public
489 489
      */
490 490
     public function clear($check)
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
     /**
495 495
      * Cache Engine settings
496 496
      *
497
-     * @return array settings
497
+     * @return integer settings
498 498
      * @access public
499 499
      */
500 500
     public function settings()
Please login to merge, or discard this patch.