Code Duplication    Length = 6-6 lines in 2 locations

src/grid/ServerGridView.php 2 locations

@@ 112-117 (lines=6) @@
109
            'tariff_and_discount' => [
110
                'attribute' => 'tariff',
111
                'format' => 'raw',
112
                'value' => function ($model) {
113
                    return self::formatTariff($model) . ' ' . DiscountFormatter::widget([
114
                        'current' => $model->discounts['fee']['current'],
115
                        'next' => $model->discounts['fee']['next'],
116
                    ]);
117
                },
118
            ],
119
            'discount' => [
120
                'attribute' => 'discount',
@@ 124-129 (lines=6) @@
121
                'label' => Yii::t('hipanel/server', 'Discount'),
122
                'format' => 'raw',
123
                'headerOptions' => ['style' => 'width: 1em'],
124
                'value' => function ($model) {
125
                    return DiscountFormatter::widget([
126
                        'current' => $model->discounts['fee']['current'],
127
                        'next' => $model->discounts['fee']['next'],
128
                    ]);
129
                },
130
            ],
131
            'actions' => [
132
                'class' => ActionColumn::className(),