Code Duplication    Length = 12-12 lines in 2 locations

src/forms/BillForm.php 1 location

@@ 179-190 (lines=12) @@
176
        ];
177
    }
178
179
    public function attributeLabels()
180
    {
181
        return [
182
            'client_id' => Yii::t('hipanel', 'Client'),
183
            'time' => Yii::t('hipanel', 'Time'),
184
            'currency' => Yii::t('hipanel', 'Currency'),
185
            'sum' => Yii::t('hipanel:finance', 'Sum'),
186
            'label' => Yii::t('hipanel', 'Description'),
187
            'type' => Yii::t('hipanel', 'Type'),
188
            'quantity' => Yii::t('hipanel', 'Quantity'),
189
        ];
190
    }
191
192
    public function getIsNewRecord()
193
    {

src/models/Price.php 1 location

@@ 52-63 (lines=12) @@
49
        ]);
50
    }
51
52
    public function attributeLabels()
53
    {
54
        return [
55
            'plan_id' => Yii::t('hipanel:finance', 'Plan'),
56
            'plan' => Yii::t('hipanel:finance', 'Plan'),
57
            'quantity' => Yii::t('hipanel:finance', 'Prepaid'),
58
            'unit' => Yii::t('hipanel:finance', 'Unit'),
59
            'price' => Yii::t('hipanel:finance', 'Price'),
60
            'note' => Yii::t('hipanel', 'Note'),
61
            'type' => Yii::t('hipanel', 'Type'),
62
        ];
63
    }
64
65
    public function getTypeOptions()
66
    {