Code Duplication    Length = 18-19 lines in 2 locations

src/grid/TemplateRepresentations.php 1 location

@@ 8-25 (lines=18) @@
5
use hiqdev\higrid\representations\RepresentationCollection;
6
use Yii;
7
8
class TemplateRepresentations extends RepresentationCollection
9
{
10
    protected function fillRepresentations()
11
    {
12
        $this->representations = array_filter([
13
            'common' => [
14
                'label' => Yii::t('hipanel', 'common'),
15
                'columns' => [
16
                    'checkbox',
17
                    'author_id',
18
                    'name',
19
                    'actions',
20
                    'is_published',
21
                ],
22
            ],
23
        ]);
24
    }
25
}
26

src/grid/TicketRepresentations.php 1 location

@@ 8-26 (lines=19) @@
5
use hiqdev\higrid\representations\RepresentationCollection;
6
use Yii;
7
8
class TicketRepresentations extends RepresentationCollection
9
{
10
    protected function fillRepresentations()
11
    {
12
        $this->representations = array_filter([
13
            'common' => [
14
                'label' => Yii::t('hipanel', 'common'),
15
                'columns' => [
16
                    'checkbox',
17
                    'subject',
18
                    'author_id',
19
                    'responsible_id',
20
                    'recipient_id',
21
                    'answer_count',
22
                ],
23
            ],
24
        ]);
25
    }
26
}
27