Passed
Push — notification-layout ( 49479f...79475d )
by
unknown
09:13
created
mod/contactform/include/class.phpmailer.php 1 patch
Doc Comments   +23 added lines, -1 removed lines patch added patch discarded remove patch
@@ -426,6 +426,8 @@  discard block
 block discarded – undo
426 426
   /**
427 427
    * Sends mail using the $Sendmail program.
428 428
    * @access private
429
+   * @param string $header
430
+   * @param string $body
429 431
    * @return bool
430 432
    */
431 433
   function SendmailSend($header, $body) {
@@ -457,6 +459,8 @@  discard block
 block discarded – undo
457 459
   /**
458 460
    * Sends mail using the PHP mail() function.
459 461
    * @access private
462
+   * @param string $header
463
+   * @param string $body
460 464
    * @return bool
461 465
    */
462 466
   function MailSend($header, $body) {
@@ -507,6 +511,8 @@  discard block
 block discarded – undo
507 511
    * Chris Ryan).  Returns bool.  Returns false if there is a
508 512
    * bad MAIL FROM, RCPT, or DATA input.
509 513
    * @access private
514
+   * @param string $header
515
+   * @param string $body
510 516
    * @return bool
511 517
    */
512 518
   function SmtpSend($header, $body) {
@@ -677,6 +683,7 @@  discard block
 block discarded – undo
677 683
   /**
678 684
    * Creates recipient headers.
679 685
    * @access private
686
+   * @param string $type
680 687
    * @return string
681 688
    */
682 689
   function AddrAppend($type, $addr) {
@@ -712,6 +719,8 @@  discard block
 block discarded – undo
712 719
    * automatically perform wrapping and for quoted-printable.
713 720
    * Original written by philippe.
714 721
    * @access private
722
+   * @param string $message
723
+   * @param integer $length
715 724
    * @return string
716 725
    */
717 726
   function WrapText($message, $length, $qp_mode = false) {
@@ -1040,6 +1049,9 @@  discard block
 block discarded – undo
1040 1049
   /**
1041 1050
    * Returns the start of a message boundary.
1042 1051
    * @access private
1052
+   * @param string $charSet
1053
+   * @param string $contentType
1054
+   * @param string $encoding
1043 1055
    */
1044 1056
   function GetBoundary($boundary, $charSet, $contentType, $encoding) {
1045 1057
     $result = '';
@@ -1094,6 +1106,10 @@  discard block
 block discarded – undo
1094 1106
    * @access private
1095 1107
    * @return string
1096 1108
    */
1109
+
1110
+  /**
1111
+   * @param string $name
1112
+   */
1097 1113
   function HeaderLine($name, $value) {
1098 1114
     return $name . ': ' . $value . $this->LE;
1099 1115
   }
@@ -1101,6 +1117,7 @@  discard block
 block discarded – undo
1101 1117
   /**
1102 1118
    * Returns a formatted mail line.
1103 1119
    * @access private
1120
+   * @param string $value
1104 1121
    * @return string
1105 1122
    */
1106 1123
   function TextLine($value) {
@@ -1259,6 +1276,7 @@  discard block
 block discarded – undo
1259 1276
   /**
1260 1277
    * Encode a header string to best of Q, B, quoted or none.
1261 1278
    * @access private
1279
+   * @param string $str
1262 1280
    * @return string
1263 1281
    */
1264 1282
   function EncodeHeader ($str, $position = 'text') {
@@ -1596,6 +1614,7 @@  discard block
 block discarded – undo
1596 1614
    * Adds the error message to the error container.
1597 1615
    * Returns void.
1598 1616
    * @access private
1617
+   * @param string $msg
1599 1618
    * @return void
1600 1619
    */
1601 1620
   function SetError($msg) {
@@ -1623,6 +1642,7 @@  discard block
 block discarded – undo
1623 1642
    * PHP 4.1.0+ as well as older versions.  Returns an empty string
1624 1643
    * if nothing is found.
1625 1644
    * @access private
1645
+   * @param string $varName
1626 1646
    * @return mixed
1627 1647
    */
1628 1648
   function ServerVar($varName) {
@@ -1663,6 +1683,7 @@  discard block
 block discarded – undo
1663 1683
   /**
1664 1684
    * Returns a message in the appropriate language.
1665 1685
    * @access private
1686
+   * @param string $key
1666 1687
    * @return string
1667 1688
    */
1668 1689
   function Lang($key) {
@@ -1708,6 +1729,7 @@  discard block
 block discarded – undo
1708 1729
   /**
1709 1730
    * Evaluates the message and returns modifications for inline images and backgrounds
1710 1731
    * @access public
1732
+   * @param string $message
1711 1733
    * @return $message
1712 1734
    */
1713 1735
   function MsgHTML($message,$basedir='') {
@@ -1745,7 +1767,7 @@  discard block
 block discarded – undo
1745 1767
   /**
1746 1768
    * Gets the mime type of the embedded or inline image
1747 1769
    * @access private
1748
-   * @return mime type of ext
1770
+   * @return string type of ext
1749 1771
    */
1750 1772
   function _mime_types($ext = '') {
1751 1773
     $mimes = array(
Please login to merge, or discard this patch.
mod/contactform/include/fgcontactform.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -724,6 +724,9 @@
 block discarded – undo
724 724
         $this->message = $this->StripSlashes($_POST['message']);
725 725
     }
726 726
 
727
+    /**
728
+     * @param string $error
729
+     */
727 730
     function add_error($error)
728 731
     {
729 732
         array_push($this->errors,$error);
Please login to merge, or discard this patch.
mod/contactform/include/simple-captcha.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -80,6 +80,10 @@
 block discarded – undo
80 80
         }//else
81 81
         return $ret;
82 82
     }
83
+
84
+    /**
85
+     * @param string $answer
86
+     */
83 87
     function Md5CaptchaAnswer($answer)
84 88
     {
85 89
         return md5($this->GetKey().$answer);
Please login to merge, or discard this patch.
mod/cp_notifications/actions/cp_notifications/set_personal_subscription.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 
100 100
 /**
101 101
  * @param 	$user_guid user's guid
102
- * @return 	query for all the content that the user is associated with
102
+ * @return 	string for all the content that the user is associated with
103 103
  */
104 104
 function get_content($user_guid) {
105 105
 	$dbprefix = elgg_get_config('dbprefix');
Please login to merge, or discard this patch.
custom_index_widgets/views/default/widgets/latest_events_index/content.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -9,6 +9,11 @@
 block discarded – undo
9 9
 	require_once($CONFIG->pluginspath.'event_calendar/models/model.php');
10 10
 	
11 11
 	if(!function_exists('getLastDayOfMonth')){
12
+
13
+		/**
14
+		 * @param string $month
15
+		 * @param string $year
16
+		 */
12 17
 		function getLastDayOfMonth($month,$year) {
13 18
 			return idate('d', mktime(0, 0, 0, ($month + 1), 0, $year));
14 19
 		}
Please login to merge, or discard this patch.
mod/diagnostics/start.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
  * Recursively list through a directory tree producing a hash of all installed files
53 53
  *
54 54
  * @param starting dir $dir
55
- * @param buffer $buffer
55
+ * @param string $dir
56 56
  */
57 57
 function diagnostics_md5_dir($dir) {
58 58
 	$extensions_allowed = array('.php', '.js', '.css');
Please login to merge, or discard this patch.
mod/elgg_solr/lib/functions.php 1 patch
Doc Comments   +12 added lines, -3 removed lines patch added patch discarded remove patch
@@ -524,9 +524,11 @@  discard block
 block discarded – undo
524 524
 /**
525 525
  * Register a function to define specific configuration of an entity in solr
526 526
  * 
527
- * @param type $type - the entity type
528
- * @param type $subtype - the entity subtype
529
- * @param type $function - the function to call for updating an entity in solr
527
+ * @param string $type - the entity type
528
+ * @param type string - the entity subtype
529
+ * @param type string - the function to call for updating an entity in solr
530
+ * @param string $subtype
531
+ * @param string $function
530 532
  */
531 533
 function elgg_solr_register_solr_entity_type($type, $subtype, $function) {
532 534
 	$solr_entities = elgg_get_config('solr_entities');
@@ -779,6 +781,9 @@  discard block
 block discarded – undo
779 781
 	return true;
780 782
 }
781 783
 
784
+/**
785
+ * @param string $message
786
+ */
782 787
 function elgg_solr_debug_log($message) {
783 788
 	error_log($message);
784 789
 }
@@ -1020,6 +1025,10 @@  discard block
 block discarded – undo
1020 1025
 	return $stats;
1021 1026
 }
1022 1027
 
1028
+/**
1029
+ * @param integer $starttime
1030
+ * @param integer $endtime
1031
+ */
1023 1032
 function elgg_solr_get_system_count($options, $starttime, $endtime) {
1024 1033
 	$options['wheres'] = array(
1025 1034
 		"e.time_created >= {$starttime}",
Please login to merge, or discard this patch.
mod/embed_extender/lib/custom.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -8,6 +8,10 @@
 block discarded – undo
8 8
 	}
9 9
 
10 10
 	//Generic embed functions - Don�t touch here!
11
+
12
+	/**
13
+	 * @param string $guid
14
+	 */
11 15
 	function custom_videoembed_create_embed_object($url, $guid, $videowidth=0, $input) {
12 16
 		
13 17
 		if (!$input) {
Please login to merge, or discard this patch.
mod/embed_extender/lib/embed_extender.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -6,6 +6,10 @@
 block discarded – undo
6 6
 	return embed_extender_parser(' ' . $returnvalue . ' ', $view, $context);
7 7
 }
8 8
 
9
+/**
10
+ * @param string $input
11
+ * @param string|null $context
12
+ */
9 13
 function embed_extender_parser($input, $view, $context)
10 14
 {
11 15
 	$allowed_contexts = array('blog', 'messageboard', 'widgets', 'pages', 'bookmarks', 'file', 'event_calendar', 'photos', 'polls');
Please login to merge, or discard this patch.