@@ -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 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * @param mixed $var Anything that does not include an object (strings, ints, arrays) |
49 | 49 | * This includes multi-dimensional arrays. |
50 | 50 | * |
51 | - * @return mixed The filtered result - everything will be strings |
|
51 | + * @return string The filtered result - everything will be strings |
|
52 | 52 | */ |
53 | 53 | function filter_tags($var) { |
54 | 54 | return elgg_trigger_plugin_hook('validate', 'input', null, $var); |