Code Duplication    Length = 6-6 lines in 2 locations

src/grid/ServerGridView.php 2 locations

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