Code Duplication    Length = 13-13 lines in 2 locations

src/models/Charge.php 1 location

@@ 67-79 (lines=13) @@
64
        ];
65
    }
66
67
    public function attributeLabels()
68
    {
69
        return array_merge(parent::attributeLabels(), [
70
            'sum' => Yii::t('hipanel', 'Sum'),
71
            'type' => Yii::t('hipanel', 'Type'),
72
            'quantity' => Yii::t('hipanel', 'Quantity'),
73
            'label' => Yii::t('hipanel', 'Description'),
74
            'time' => Yii::t('hipanel', 'Time'),
75
            'object_id' => Yii::t('hipanel', 'Object Id'),
76
            'order_id' => Yii::t('hipanel', 'Order'),
77
            'is_payed' => Yii::t('hipanel:finance', 'Is payed?'),
78
        ]);
79
    }
80
81
    public function markAsNotNew()
82
    {

src/forms/BillForm.php 1 location

@@ 239-251 (lines=13) @@
236
        }
237
    }
238
239
    public function attributeLabels()
240
    {
241
        return [
242
            'client_id' => Yii::t('hipanel', 'Client'),
243
            'time' => Yii::t('hipanel', 'Time'),
244
            'currency' => Yii::t('hipanel', 'Currency'),
245
            'sum' => Yii::t('hipanel:finance', 'Sum'),
246
            'label' => Yii::t('hipanel', 'Description'),
247
            'type' => Yii::t('hipanel', 'Type'),
248
            'quantity' => Yii::t('hipanel', 'Quantity'),
249
            'object_id' => Yii::t('hipanel', 'Object'),
250
        ];
251
    }
252
253
    public function getIsNewRecord()
254
    {