| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | function module() |
||
|
|
|||
| 21 | { |
||
| 22 | return array( |
||
| 23 | 'filename' => '\phpbbgallery\core\ucp\main_module', |
||
| 24 | 'title' => 'PHPBB_GALLERY', |
||
| 25 | 'version' => '1.0.0', |
||
| 26 | 'modes' => array( |
||
| 27 | 'manage_albums' => array( |
||
| 28 | 'title' => 'UCP_GALLERY_PERSONAL_ALBUMS', |
||
| 29 | 'auth' => 'ext_phpbbgallery/core', |
||
| 30 | 'cat' => array('PHPBB_GALLERY') |
||
| 31 | ), |
||
| 32 | 'manage_subscriptions' => array( |
||
| 33 | 'title' => 'UCP_GALLERY_WATCH', |
||
| 34 | 'auth' => 'ext_phpbbgallery/core', |
||
| 35 | 'cat' => array('PHPBB_GALLERY') |
||
| 36 | ), |
||
| 41 |
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.