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

@@ 68-71 (lines=4) @@
65
                'attribute' => 'name',
66
                'filterAttribute' => 'name_like',
67
                'format' => 'raw',
68
                'value' => function ($model) {
69
                    return  Html::a($model->name, ['@backuping/view', 'id' => $model->id], ['class' => 'bold']) . ' ' .
70
                            ObjLinkWidget::widget(['model' => $model->getObj()]);
71
                },
72
            ],
73
            'account' => [
74
                'attribute' => 'account_id',