Code Duplication    Length = 19-19 lines in 2 locations

system/modules/Money/models/Reward/Level/Param.php 1 location

@@ 14-32 (lines=19) @@
11
12
namespace Money\Reward\Level;
13
14
class Param extends \Model
15
{
16
    public static $cols = [
17
        'reward_level_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'level'],
18
        'param' => ['type' => 'text'],
19
        'value' => ['type' => 'text'],
20
    ];
21
22
    public static function relations()
23
    {
24
        return [
25
            'level' => [
26
                'model' => 'Money\Reward\Level',
27
                'col' => 'reward_level_id'
28
            ],
29
        ];
30
    }
31
32
}
33

system/modules/Money/models/Reward/Trigger/Param.php 1 location

@@ 16-34 (lines=19) @@
13
14
namespace Money\Reward\Trigger;
15
16
class Param extends \Model
17
{
18
    public static $cols = [
19
        'reward_trigger_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'trigger'],
20
        'param' => ['type' => 'text'],
21
        'value' => ['type' => 'text'],
22
    ];
23
24
    public static function relations()
25
    {
26
        return [
27
            'trigger' => [
28
                'model' => 'Money\Reward\Trigger',
29
                'col' => 'reward_trigger_id'
30
            ],
31
        ];
32
    }
33
34
}
35