Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | interface UserlogPluginInterface |
||
|
|||
23 | { |
||
24 | /** |
||
25 | * @param string $subscribe_from Name of the script |
||
26 | * |
||
27 | * 'name' => 'thread'; |
||
28 | * 'title' => _MI_NEWBB_THREAD_NOTIFY; |
||
29 | * 'description' => _MI_NEWBB_THREAD_NOTIFYDSC; |
||
30 | * 'subscribe_from' => 'viewtopic.php'; |
||
31 | * 'item_name' => 'topic_id'; |
||
32 | * 'allow_bookmark' => 1; |
||
33 | * |
||
34 | * @return array $item["item_name"] name of the item, $item["item_id"] id of the item |
||
35 | */ |
||
36 | public function item($subscribe_from); |
||
37 | } |
||
38 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.