@@ -6,6 +6,10 @@ |
||
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'); |
@@ -39,6 +39,9 @@ discard block |
||
39 | 39 | * @param string term Search term |
40 | 40 | * @param int limit Maximum number of results to return |
41 | 41 | * @param int offset Begin returning results starting from offset |
42 | + * @param string $term |
|
43 | + * @param integer $limit |
|
44 | + * @param integer $offset |
|
42 | 45 | * |
43 | 46 | * @return array Query result set |
44 | 47 | * array( |
@@ -175,6 +178,7 @@ discard block |
||
175 | 178 | * |
176 | 179 | * @param string haystack String to search in |
177 | 180 | * @param string term String to search for in haystack |
181 | + * @param string $term |
|
178 | 182 | * @return boolean |
179 | 183 | */ |
180 | 184 | private function isMatched($haystack, $term) { |
@@ -178,7 +178,7 @@ |
||
178 | 178 | * Title is ignored |
179 | 179 | * |
180 | 180 | * @param array $page |
181 | - * @return null |
|
181 | + * @return boolean |
|
182 | 182 | */ |
183 | 183 | function event_calendar_page_handler($page) { |
184 | 184 |
@@ -298,6 +298,9 @@ |
||
298 | 298 | return elgg_view('file/typecloud', $params); |
299 | 299 | } |
300 | 300 | |
301 | +/** |
|
302 | + * @param boolean $friends |
|
303 | + */ |
|
301 | 304 | function file_type_cloud_get_url($type, $friends) { |
302 | 305 | $url = elgg_get_site_url() . 'file/search?subtype=file'; |
303 | 306 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | * |
9 | 9 | * @param array $page page elements |
10 | 10 | * |
11 | - * @return bool |
|
11 | + * @return null|boolean |
|
12 | 12 | */ |
13 | 13 | function file_tools_page_handler($page) { |
14 | 14 | $include_file = false; |
@@ -68,6 +68,10 @@ |
||
68 | 68 | * @return [ARRAY] [<ARRAY of user entities>] |
69 | 69 | * |
70 | 70 | */ |
71 | +/** |
|
72 | + * @param string $query_operand |
|
73 | + * @param integer $limit |
|
74 | + */ |
|
71 | 75 | function skill_search($query_array, $query_operand, $limit) |
72 | 76 | { |
73 | 77 | $options = array(); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * Checks for invalid / external domains |
142 | 142 | * |
143 | 143 | * @param $domain <string> domain part of the user's email address |
144 | - * @return true if domain is invalid, false otherwise |
|
144 | + * @return boolean if domain is invalid, false otherwise |
|
145 | 145 | * |
146 | 146 | **/ |
147 | 147 | function checkInvalidDomain($dom) |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | * Array key is the character to remove and the associated item is what will replace it. |
196 | 196 | * |
197 | 197 | * @param $emailInput <string> users email address |
198 | - * @return always returns "" because we use the response text directly |
|
198 | + * @return string returns "" because we use the response text directly |
|
199 | 199 | * @author Matthew April <[email protected]> |
200 | 200 | */ |
201 | 201 |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | * |
195 | 195 | * @param $domain <string> domain part of the user's email address |
196 | 196 | * @param $email <string> the user's full email address |
197 | - * @return true if domain is invalid, false otherwise |
|
197 | + * @return boolean if domain is invalid, false otherwise |
|
198 | 198 | * |
199 | 199 | **/ |
200 | 200 | function checkInvalidDomain($dom, $email){ |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | * Array key is the character to remove and the associated item is what will replace it. |
252 | 252 | * |
253 | 253 | * @param $emailInput <string> users email address |
254 | - * @return always returns "" because we use the response text directly |
|
254 | + * @return string returns "" because we use the response text directly |
|
255 | 255 | * @author Matthew April <[email protected]> |
256 | 256 | */ |
257 | 257 |
@@ -446,7 +446,7 @@ |
||
446 | 446 | * @param int $group_guid the group GUID |
447 | 447 | * @param string $email the email address |
448 | 448 | * |
449 | - * @return boolean|string the invite code, or false on failure |
|
449 | + * @return string|false the invite code, or false on failure |
|
450 | 450 | */ |
451 | 451 | function group_tools_generate_email_invite_code($group_guid, $email) { |
452 | 452 | $result = false; |