@@ -191,7 +191,7 @@ |
||
191 | 191 | /** |
192 | 192 | * Runs unit tests for htmlawed |
193 | 193 | * |
194 | - * @return array |
|
194 | + * @return string[] |
|
195 | 195 | */ |
196 | 196 | function htmlawed_test($hook, $type, $value, $params) { |
197 | 197 | $value[] = dirname(__FILE__) . '/tests/tags.php'; |
@@ -51,8 +51,6 @@ |
||
51 | 51 | * Rewrites a view for @username mentions. |
52 | 52 | * |
53 | 53 | * @param string $hook The name of the hook |
54 | - * @param string $type The type of the hook |
|
55 | - * @param string $content The content of the page |
|
56 | 54 | * @return string |
57 | 55 | */ |
58 | 56 | function mentions_rewrite($hook, $entity_type, $returnvalue, $params) { |
@@ -630,7 +630,7 @@ |
||
630 | 630 | * @param string $return_value |
631 | 631 | * @param array $params |
632 | 632 | * |
633 | - * @return array |
|
633 | + * @return string |
|
634 | 634 | */ |
635 | 635 | function messages_ecml_views_hook($hook, $entity_type, $return_value, $params) { |
636 | 636 | $return_value['messages/messages'] = elgg_echo('messages'); |
@@ -41,6 +41,9 @@ discard block |
||
41 | 41 | * Wes7ley |
42 | 42 | * Wesley9 |
43 | 43 | */ |
44 | +/** |
|
45 | + * @param string $name |
|
46 | + */ |
|
44 | 47 | function mm_is_valid_person_name($name) |
45 | 48 | { |
46 | 49 | $regex = "/^[^0-9]+$/"; |
@@ -57,6 +60,9 @@ discard block |
||
57 | 60 | * 532K351 |
58 | 61 | * @578(532) |
59 | 62 | */ |
63 | +/** |
|
64 | + * @param string $num |
|
65 | + */ |
|
60 | 66 | function mm_is_guid_number($num) |
61 | 67 | { |
62 | 68 | $regex = "/^[0-9]*$/"; |
@@ -110,6 +116,9 @@ discard block |
||
110 | 116 | * Tests a the start time and duration of the given day of the week. |
111 | 117 | * Also defaults the minutes to '00' if the hour is set and the minute value is null. |
112 | 118 | */ |
119 | +/** |
|
120 | + * @param string $day |
|
121 | + */ |
|
113 | 122 | function mm_validate_time($day, $input_array) |
114 | 123 | { |
115 | 124 | /*$start_hour = $input_array[$day . '_start_hour']; |
@@ -195,7 +195,7 @@ |
||
195 | 195 | * @param $type |
196 | 196 | * @param $value |
197 | 197 | * @param $params |
198 | - * @return array |
|
198 | + * @return string[] |
|
199 | 199 | * |
200 | 200 | * to run the tests: http://127.0.0.1/gcconnex/engine/tests/suite.php |
201 | 201 | * |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | /** |
6 | 6 | * Pagesetup |
7 | 7 | * |
8 | - * @return type |
|
8 | + * @return null|boolean |
|
9 | 9 | */ |
10 | 10 | function pagesetup() { |
11 | 11 | if (!elgg_is_logged_in()) { |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | |
140 | 140 | /** |
141 | 141 | * Run-once upgrades |
142 | - * @return boolean |
|
142 | + * @return boolean|null |
|
143 | 143 | */ |
144 | 144 | function upgrades() { |
145 | 145 | if (!elgg_is_admin_logged_in()) { |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | * @param bool $returnvalue |
317 | 317 | * @param array $params |
318 | 318 | * |
319 | - * @return bool |
|
319 | + * @return null|boolean |
|
320 | 320 | */ |
321 | 321 | function pages_write_permission_check($hook, $entity_type, $returnvalue, $params) { |
322 | 322 | if (!pages_is_page($params['entity'])) { |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | * @param bool $returnvalue |
360 | 360 | * @param array $params |
361 | 361 | * |
362 | - * @return bool |
|
362 | + * @return null|boolean |
|
363 | 363 | */ |
364 | 364 | function pages_container_permission_check($hook, $entity_type, $returnvalue, $params) { |
365 | 365 | if (elgg_get_context() != "pages") { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * poll page handler; allows the use of fancy URLs |
69 | 69 | * |
70 | 70 | * @param array $page From the page_handler function |
71 | - * @return true|false Depending on success |
|
71 | + * @return boolean Depending on success |
|
72 | 72 | */ |
73 | 73 | function polls_page_handler($page) { |
74 | 74 | elgg_load_library('elgg:polls'); |
@@ -108,7 +108,6 @@ discard block |
||
108 | 108 | /** |
109 | 109 | * Populates the ->getUrl() method for poll objects |
110 | 110 | * |
111 | - * @param ElggEntity $pollpost poll post entity |
|
112 | 111 | * @return string poll post URL |
113 | 112 | */ |
114 | 113 | function polls_url($poll) { |
@@ -361,7 +361,7 @@ |
||
361 | 361 | * @param string $type Hook type |
362 | 362 | * @param array $value Array of custom search types |
363 | 363 | * @param array $params Search parameters |
364 | - * @return array |
|
364 | + * @return string[] |
|
365 | 365 | */ |
366 | 366 | function search_custom_types_tags_hook($hook, $type, $value, $params) { |
367 | 367 | $value[] = 'tags'; |