UserlogPluginInterface::item()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
/*
3
 You may not change or alter any portion of this comment or credits
4
 of supporting developers from this source code or any supporting source code
5
 which is considered copyrighted (c) material of the original comment or credit authors.
6
7
 This program is distributed in the hope that it will be useful,
8
 but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
12
/**
13
 *  userlog module
14
 *
15
 * @copyright       XOOPS Project (https://xoops.org)
16
 * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
17
 * @package         userlog class plugin
18
 * @since           1.16
19
 * @author          irmtfan ([email protected])
20
 * @author          XOOPS Project <www.xoops.org> <www.xoops.ir>
21
 */
22
interface UserlogPluginInterface
0 ignored issues
show
Coding Style Compatibility introduced by
Each interface must be in a namespace of at least one level (a top-level vendor name)

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
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