| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | function module() |
||
|
|
|||
| 19 | { |
||
| 20 | return array( |
||
| 21 | 'filename' => '\phpbb\ads\ucp\main_module', |
||
| 22 | 'title' => 'UCP_PHPBB_ADS_TITLE', |
||
| 23 | 'modes' => array( |
||
| 24 | 'stats' => array( |
||
| 25 | 'title' => 'UCP_PHPBB_ADS_STATS', |
||
| 26 | 'auth' => 'ext_phpbb/ads', |
||
| 27 | 'cat' => array('UCP_PHPBB_ADS_TITLE') |
||
| 28 | ), |
||
| 29 | ), |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |
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.