@@ -758,6 +758,9 @@ |
||
758 | 758 | $this->message = $this->StripSlashes($_POST['message']); |
759 | 759 | } |
760 | 760 | |
761 | + /** |
|
762 | + * @param string $error |
|
763 | + */ |
|
761 | 764 | public function add_error($error) |
762 | 765 | { |
763 | 766 | array_push($this->errors, $error); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @param string $type |
63 | 63 | * @param bool $value |
64 | 64 | * @param array $params |
65 | - * @return bool |
|
65 | + * @return null|boolean |
|
66 | 66 | */ |
67 | 67 | function uservalidationbyemail_disable_new_user($hook, $type, $value, $params) { |
68 | 68 | $user = elgg_extract('user', $params); |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * Checks if an account is validated |
156 | 156 | * |
157 | 157 | * @params array $credentials The username and password |
158 | - * @return bool |
|
158 | + * @return boolean|null |
|
159 | 159 | */ |
160 | 160 | function uservalidationbyemail_check_auth_attempt($credentials) { |
161 | 161 | |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | * @param string $event |
235 | 235 | * @param string $type |
236 | 236 | * @param ElggUser $user |
237 | - * @return bool |
|
237 | + * @return false|null |
|
238 | 238 | * |
239 | 239 | * @throws LoginException |
240 | 240 | */ |
@@ -12,6 +12,11 @@ |
||
12 | 12 | require_once($CONFIG->pluginspath.'event_calendar/models/model.php'); |
13 | 13 | |
14 | 14 | if (!function_exists('getLastDayOfMonth')) { |
15 | + |
|
16 | + /** |
|
17 | + * @param string $month |
|
18 | + * @param string $year |
|
19 | + */ |
|
15 | 20 | function getLastDayOfMonth($month, $year) |
16 | 21 | { |
17 | 22 | return idate('d', mktime(0, 0, 0, ($month + 1), 0, $year)); |
@@ -1744,7 +1744,7 @@ |
||
1744 | 1744 | * |
1745 | 1745 | * @author Ethan Wallace |
1746 | 1746 | * @param string $desc Preview text from the discussion. |
1747 | - * @return string HTML to create embeded video |
|
1747 | + * @return string[] HTML to create embeded video |
|
1748 | 1748 | */ |
1749 | 1749 | function embed_discussion_river($desc) |
1750 | 1750 | { |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | * |
163 | 163 | * @param $width |
164 | 164 | * @param $height |
165 | - * @param $toolbar_height |
|
165 | + * @param integer $toolbar_height |
|
166 | 166 | */ |
167 | 167 | function videoembed_calc_size(&$width, &$height, $aspect_ratio, $toolbar_height) { |
168 | 168 | // set video width and height |
@@ -315,6 +315,8 @@ discard block |
||
315 | 315 | * parse youtu.be url |
316 | 316 | * |
317 | 317 | * @param string $url |
318 | + * @param integer $guid |
|
319 | + * @param integer $videowidth |
|
318 | 320 | * @return string youtube.com/embed/hash |
319 | 321 | */ |
320 | 322 | function videoembed_youtube_shortener_parse_url($url, $guid, $videowidth) { |
@@ -82,7 +82,7 @@ |
||
82 | 82 | * Download an attachment: thewire_image/download/<guid>/<title> |
83 | 83 | * |
84 | 84 | * @param array $page From the page_handler function |
85 | - * @return bool |
|
85 | + * @return boolean|null |
|
86 | 86 | */ |
87 | 87 | function thewire_image_page_handler($page) { |
88 | 88 |
@@ -606,6 +606,10 @@ |
||
606 | 606 | |
607 | 607 | |
608 | 608 | /// recursively go through the nested forums to create the breadcrumb |
609 | +/** |
|
610 | + * @param integer $forum_guid |
|
611 | + * @param integer $recurse_forum_guid |
|
612 | + */ |
|
609 | 613 | function assemble_nested_forums($breadcrumb, $forum_guid, $recurse_forum_guid) { |
610 | 614 | $lang = get_current_language(); |
611 | 615 | $entity = get_entity($recurse_forum_guid); |
@@ -69,6 +69,10 @@ |
||
69 | 69 | return delete_data("DELETE FROM pleio_request_access WHERE id = {$this->id}"); |
70 | 70 | } |
71 | 71 | |
72 | + /** |
|
73 | + * @param string $subject |
|
74 | + * @param string $body |
|
75 | + */ |
|
72 | 76 | private function sendEmail($subject, $body, $params = null) { |
73 | 77 | $site = elgg_get_site_entity(); |
74 | 78 |
@@ -2,6 +2,10 @@ |
||
2 | 2 | namespace ModPleio; |
3 | 3 | |
4 | 4 | class Helpers { |
5 | + |
|
6 | + /** |
|
7 | + * @return string |
|
8 | + */ |
|
5 | 9 | public static function generateUsername($username) { |
6 | 10 | $hidden = access_show_hidden_entities(true); |
7 | 11 |