Code Duplication    Length = 8-9 lines in 2 locations

src/models/Price.php 2 locations

@@ 65-73 (lines=9) @@
62
        ];
63
    }
64
65
    public function getTypeOptions()
66
    {
67
        return Ref::getList('type,bill', null, [
68
            'select' => 'oname_label',
69
            'pnames' => 'monthly,overuse',
70
            'with_recursive' => 1,
71
            'mapOptions' => ['from' => 'oname'],
72
        ]);
73
    }
74
75
    public function getUnitOptions()
76
    {
@@ 75-82 (lines=8) @@
72
        ]);
73
    }
74
75
    public function getUnitOptions()
76
    {
77
        return Ref::getList('type,unit', null, [
78
            'with_recursive' => 1,
79
            'select' => 'oname_label',
80
            'mapOptions' => ['from' => 'oname'],
81
        ]);
82
    }
83
84
    public function getCurrencyOptions()
85
    {