@@ -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 | |
@@ -109,6 +109,9 @@ |
||
| 109 | 109 | false |
| 110 | 110 | ); |
| 111 | 111 | |
| 112 | +/** |
|
| 113 | + * @param ElggUser $user_entity |
|
| 114 | + */ |
|
| 112 | 115 | function wires_foreach($wire_posts, $user_entity) |
| 113 | 116 | { |
| 114 | 117 | foreach ($wire_posts as $wire_post) { |
@@ -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); |