Code Duplication    Length = 4-4 lines in 2 locations

src/grid/BackupGridView.php 1 location

@@ 48-51 (lines=4) @@
45
                'attribute' => 'name',
46
                'filterAttribute' => 'name_like',
47
                'filterOptions' => ['class' => 'narrow-filter'],
48
                'value' => function ($model) {
49
                    return  Html::a($model->name, ['@backuping/view', 'id' => $model->object_id], ['class' => 'bold']) . ' ' .
50
                            ObjLinkWidget::widget(['model' => $model->getObj()]);
51
                },
52
            ],
53
            'name' => [
54
                'format' => 'raw',

src/grid/BackupingGridView.php 1 location

@@ 58-61 (lines=4) @@
55
                'attribute' => 'name',
56
                'filterAttribute' => 'name_like',
57
                'format' => 'raw',
58
                'value' => function ($model) {
59
                    return  Html::a($model->name, ['@backuping/view', 'id' => $model->id], ['class' => 'bold']) . ' ' .
60
                            ObjLinkWidget::widget(['model' => $model->getObj()]);
61
                },
62
            ],
63
            'account' => [
64
                'attribute' => 'account_id',