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