| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | function module() |
||
|
|
|||
| 18 | { |
||
| 19 | return array( |
||
| 20 | 'title' => 'PHPBB_GALLERY', |
||
| 21 | 'version' => '1.0.0', |
||
| 22 | 'modes' => array( |
||
| 23 | 'manage' => array( |
||
| 24 | 'title' => 'ACP_GALLERY_ALBUM_PERMISSIONS', |
||
| 25 | 'auth' => 'ext_phpbbgallery/core && acl_a_gallery_albums', |
||
| 26 | 'cat' => array('PHPBB_GALLERY') |
||
| 27 | ), |
||
| 28 | 'copy' => array( |
||
| 29 | 'title' => 'ACP_GALLERY_ALBUM_PERMISSIONS_COPY', |
||
| 30 | 'auth' => 'ext_phpbbgallery/core && acl_a_gallery_albums', |
||
| 31 | 'cat' => array('PHPBB_GALLERY') |
||
| 32 | ), |
||
| 37 |
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.