Code Duplication    Length = 8-9 lines in 2 locations

src/models/Price.php 2 locations

@@ 56-64 (lines=9) @@
53
        ];
54
    }
55
56
    public function getTypeOptions()
57
    {
58
        return Ref::getList('type,bill', null, [
59
            'select' => 'oname_label',
60
            'pnames' => 'monthly,overuse',
61
            'with_recursive' => 1,
62
            'mapOptions' => ['from' => 'oname'],
63
        ]);
64
    }
65
66
    public function getUnitOptions()
67
    {
@@ 66-73 (lines=8) @@
63
        ]);
64
    }
65
66
    public function getUnitOptions()
67
    {
68
        return Ref::getList('type,unit', null, [
69
            'with_recursive' => 1,
70
            'select' => 'oname_label',
71
            'mapOptions' => ['from' => 'oname'],
72
        ]);
73
    }
74
75
    public function getCurrencyOptions()
76
    {