| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | function module() |
||
|
|
|||
| 9 | { |
||
| 10 | return array( |
||
| 11 | 'filename' => '\florinp\messenger\ucp\ucp_friends_module', |
||
| 12 | 'title' => 'CHAT_BOX', |
||
| 13 | 'modes' => array( |
||
| 14 | 'friends' => array( |
||
| 15 | 'title' => 'FRIENDS_LIST', |
||
| 16 | 'auth' => 'ext_florinp/messenger && acl_u_access_messenger' |
||
| 17 | ), |
||
| 18 | 'requests' => array( |
||
| 19 | 'title' => 'FRIENDS_REQUESTS', |
||
| 20 | 'auth' => 'ext_florinp/messenger && acl_u_access_messenger', |
||
| 21 | ), |
||
| 22 | ) |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 27 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.