Completed
Pull Request — gcconnex (#1480)
by
unknown
31:07 queued 13:40
created
mod/cp_notifications/lib/functions.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,7 @@  discard block
 block discarded – undo
6 6
  * @param integer 	$entity_guid_static
7 7
  * @param integer 	$entity_guid
8 8
  *
9
+ * @return integer
9 10
  */
10 11
 function get_forum_in_group($entity_guid_static, $entity_guid) {
11 12
 	$entity = get_entity($entity_guid);
@@ -159,7 +160,7 @@  discard block
 block discarded – undo
159 160
  * @param ElggEntity 	$entity
160 161
  * @param ElggUser 		$send_to
161 162
  * @param string 		$entity_url (default value empty)
162
- * @return Success 		true/false
163
+ * @return boolean 		true/false
163 164
  */
164 165
 function create_digest($invoked_by, $subtype, $entity, $send_to, $entity_url = '') {
165 166
 
Please login to merge, or discard this patch.
mod/gcforums/start.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -126,6 +126,9 @@  discard block
 block discarded – undo
126 126
 }
127 127
 
128 128
 /// recursively go through the forums and return group entity
129
+/**
130
+ * @return integer
131
+ */
129 132
 function gcforums_get_forum_in_group($entity_guid_static, $entity_guid) {
130 133
 	$entity = get_entity($entity_guid);
131 134
 	// (base) stop recursing when we reach group guid
@@ -220,6 +223,9 @@  discard block
 block discarded – undo
220 223
 
221 224
 
222 225
 
226
+/**
227
+ * @param ElggEntity $entity
228
+ */
223 229
 function assemble_forum_breadcrumb($entity) {
224 230
 	$forum_guid = $entity->guid;
225 231
 	if ($entity instanceof ElggGroup) {
@@ -511,6 +517,7 @@  discard block
 block discarded – undo
511 517
  * TOTAL_POST : 1
512 518
  * TOTAL_TOPICS : 2
513 519
  * RECENT_POST : 3
520
+ * @param integer $type
514 521
  */
515 522
 function get_forums_statistics_information($container_guid, $type) {
516 523
 	$dbprefix = elgg_get_config('dbprefix');
@@ -662,6 +669,10 @@  discard block
 block discarded – undo
662 669
 
663 670
 
664 671
 
672
+/**
673
+ * @param integer|null $forum_guid
674
+ * @param integer|null $group_guid
675
+ */
665 676
 function gcforums_menu_buttons($forum_guid, $group_guid, $is_topic=false) { 
666 677
 	// main page if forum_guid is not present
667 678
 	elgg_load_css('gcforums-css');
Please login to merge, or discard this patch.
mod/missions_collab/lib/missions.php 1 patch
Doc Comments   +23 added lines patch added patch discarded remove patch
@@ -10,6 +10,12 @@  discard block
 block discarded – undo
10 10
 /*
11 11
  * Packs the language variables for a single language into a single string.
12 12
  */
13
+/**
14
+ * @param string|null $lwc
15
+ * @param string|null $lwe
16
+ * @param string|null $lop
17
+ * @param string|null $lang
18
+ */
13 19
 function mm_pack_language($lwc, $lwe, $lop, $lang)
14 20
 {
15 21
     $returner = '';
@@ -41,6 +47,9 @@  discard block
 block discarded – undo
41 47
 /*
42 48
  * Unpacks a language string into an array of its component variable.
43 49
  */
50
+/**
51
+ * @param string|null $lang
52
+ */
44 53
 function mm_unpack_language($data_string, $lang)
45 54
 {
46 55
     $returner = array();
@@ -71,6 +80,11 @@  discard block
 block discarded – undo
71 80
 /*
72 81
  * Packs the time (hour and minute) into a single string.
73 82
  */
83
+/**
84
+ * @param string|null $hour
85
+ * @param string|null $min
86
+ * @param string|null $day
87
+ */
74 88
 function mm_pack_time($hour, $min, $day)
75 89
 {
76 90
     $returner = '';
@@ -95,6 +109,9 @@  discard block
 block discarded – undo
95 109
 /*
96 110
  * Unpacks the time into an array of hour and minute.
97 111
  */
112
+/**
113
+ * @param string|null $day
114
+ */
98 115
 function mm_unpack_time($data_string, $day)
99 116
 {
100 117
     $returner = array();
@@ -558,6 +575,9 @@  discard block
 block discarded – undo
558 575
 /*
559 576
  * Returns an accept button to a user who has received an offer if the mission is not full.
560 577
  */
578
+/**
579
+ * @param ElggUser|null $applicant
580
+ */
561 581
 function mm_finalize_button($mission, $applicant) {
562 582
 	$relationship_count = elgg_get_entities_from_relationship(array(
563 583
 			'relationship' => 'mission_accepted',
@@ -723,6 +743,9 @@  discard block
 block discarded – undo
723 743
 /*
724 744
  * Check if the user is opted in to any of the opt-in options.
725 745
  */
746
+/**
747
+ * @param ElggEntity|null $current_user
748
+ */
726 749
 function check_if_opted_in($current_user) {
727 750
     //Nick - adding additional checks for other opportunity types
728 751
 	if($current_user->opt_in_missions == 'gcconnex_profile:opt:yes') {
Please login to merge, or discard this patch.