@@ -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'); |
@@ -10,6 +10,9 @@ |
||
10 | 10 | private $subtype = false; |
11 | 11 | private $guid = null; |
12 | 12 | |
13 | + /** |
|
14 | + * @param string $object_type |
|
15 | + */ |
|
13 | 16 | function __construct($object_type, $subtype = false, $guid = null) { |
14 | 17 | $this->object_type = $object_type; |
15 | 18 | $this->subtype = $subtype; |
@@ -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']; |
@@ -10,6 +10,12 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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') { |
@@ -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 | * |
@@ -46,6 +46,9 @@ discard block |
||
46 | 46 | * Function to format the dropdown menu input. |
47 | 47 | * If the input is not an entity then it returns false. |
48 | 48 | */ |
49 | +/** |
|
50 | + * @param integer $input |
|
51 | + */ |
|
49 | 52 | function mo_format_input_node($input) { |
50 | 53 | if(elgg_entity_exists($input)) { |
51 | 54 | return 'MOrg:' . $input; |
@@ -145,6 +148,9 @@ discard block |
||
145 | 148 | /* |
146 | 149 | * Extracts node guid from the stored data. |
147 | 150 | */ |
151 | +/** |
|
152 | + * @return integer |
|
153 | + */ |
|
148 | 154 | function mo_extract_node_guid($node_string) { |
149 | 155 | $node_array = explode(':', $node_string); |
150 | 156 | return $node_array[1]; |
@@ -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") { |
@@ -72,6 +72,7 @@ discard block |
||
72 | 72 | * This is a stupid function pulled from original Elgg code |
73 | 73 | * |
74 | 74 | * @param ElggEntity The entity sending the message |
75 | + * @param ElggEntity $from |
|
75 | 76 | * @return string with email address |
76 | 77 | */ |
77 | 78 | function phpmailer_extract_from_email($from) { |
@@ -98,8 +99,6 @@ discard block |
||
98 | 99 | /** |
99 | 100 | * Send an email using phpmailer |
100 | 101 | * |
101 | - * @param string $from From address |
|
102 | - * @param string $from_name From name |
|
103 | 102 | * @param string $to To address |
104 | 103 | * @param string $to_name To name |
105 | 104 | * @param string $subject The subject of the message. |
@@ -271,6 +270,9 @@ discard block |
||
271 | 270 | |
272 | 271 | |
273 | 272 | |
273 | +/** |
|
274 | + * @param string $type |
|
275 | + */ |
|
274 | 276 | function phpmailer_logging($errMess, $errStack, $type, $errType) { |
275 | 277 | // logging mechanism |
276 | 278 | if (elgg_is_active_plugin('wet4')) { |