Code Duplication    Length = 6-6 lines in 2 locations

src/grid/ServerGridView.php 2 locations

@@ 142-147 (lines=6) @@
139
                'label' => Yii::t('hipanel:server', 'Discount'),
140
                'format' => 'raw',
141
                'headerOptions' => ['style' => 'width: 1em'],
142
                'value' => function ($model) {
143
                    return DiscountFormatter::widget([
144
                        'current' => $model->discounts['fee']['current'],
145
                        'next' => $model->discounts['fee']['next'],
146
                    ]);
147
                },
148
            ],
149
            'expires' => [
150
                'filter' => false,
@@ 168-173 (lines=6) @@
165
                'attribute' => 'tariff',
166
                'filterAttribute' => 'tariff_like',
167
                'format' => 'raw',
168
                'value' => function ($model) {
169
                    return self::formatTariff($model) . ' ' . DiscountFormatter::widget([
170
                        'current' => $model->discounts['fee']['current'],
171
                        'next' => $model->discounts['fee']['next'],
172
                    ]);
173
                },
174
            ],
175
            'ip' => [
176
                'filter' => false,