Code Duplication    Length = 21-23 lines in 7 locations

src/grid/BackupingRepresentations.php 1 location

@@ 16-38 (lines=23) @@
13
use hiqdev\higrid\representations\RepresentationCollection;
14
use Yii;
15
16
class BackupingRepresentations extends RepresentationCollection
17
{
18
    protected function fillRepresentations()
19
    {
20
        $this->representations = array_filter([
21
            'common' => [
22
                'label' => Yii::t('hipanel', 'common'),
23
                'columns' => [
24
                    'checkbox',
25
                    'client',
26
                    'account',
27
                    'server',
28
                    'main',
29
                    'backup_count',
30
                    'type',
31
                    'state_label',
32
                    'backup_last',
33
                    'total_du',
34
                ],
35
            ],
36
        ]);
37
    }
38
}
39

src/grid/DbRepresentations.php 1 location

@@ 16-36 (lines=21) @@
13
use hiqdev\higrid\representations\RepresentationCollection;
14
use Yii;
15
16
class DbRepresentations extends RepresentationCollection
17
{
18
    protected function fillRepresentations()
19
    {
20
        $this->representations = array_filter([
21
            'common' => [
22
                'label' => Yii::t('hipanel', 'common'),
23
                'columns' => [
24
                    'checkbox',
25
                    'name',
26
                    'account',
27
                    'server',
28
                    'client_id',
29
                    'seller_id',
30
                    'description',
31
                    'state',
32
                ],
33
            ],
34
        ]);
35
    }
36
}
37

src/grid/HdomainRepresentations.php 1 location

@@ 16-37 (lines=22) @@
13
use hiqdev\higrid\representations\RepresentationCollection;
14
use Yii;
15
16
class HdomainRepresentations extends RepresentationCollection
17
{
18
    protected function fillRepresentations()
19
    {
20
        $this->representations = array_filter([
21
            'common' => [
22
                'label' => Yii::t('hipanel', 'common'),
23
                'columns' => [
24
                    'checkbox',
25
                    'hdomain_with_aliases',
26
                    'client',
27
                    'seller',
28
                    'account',
29
                    'server',
30
                    'state',
31
                    'ip',
32
                    'service',
33
                ],
34
            ],
35
        ]);
36
    }
37
}
38

src/grid/MailRepresentations.php 1 location

@@ 16-36 (lines=21) @@
13
use hiqdev\higrid\representations\RepresentationCollection;
14
use Yii;
15
16
class MailRepresentations extends RepresentationCollection
17
{
18
    protected function fillRepresentations()
19
    {
20
        $this->representations = array_filter([
21
            'common' => [
22
                'label' => Yii::t('hipanel', 'common'),
23
                'columns' => [
24
                    'checkbox',
25
                    'mail',
26
                    'forwards',
27
                    'client',
28
                    'seller',
29
                    'server',
30
                    'account',
31
                    'state',
32
                ],
33
            ],
34
        ]);
35
    }
36
}
37

src/grid/RequestRepresentations.php 1 location

@@ 16-36 (lines=21) @@
13
use hiqdev\higrid\representations\RepresentationCollection;
14
use Yii;
15
16
class RequestRepresentations extends RepresentationCollection
17
{
18
    protected function fillRepresentations()
19
    {
20
        $this->representations = array_filter([
21
            'common' => [
22
                'label' => Yii::t('hipanel', 'common'),
23
                'columns' => [
24
                    'checkbox',
25
                    'classes',
26
                    'server',
27
                    'account',
28
                    'actions',
29
                    'object',
30
                    'time',
31
                    'state',
32
                ],
33
            ],
34
        ]);
35
    }
36
}
37

src/grid/ServiceRepresentations.php 1 location

@@ 16-36 (lines=21) @@
13
use hiqdev\higrid\representations\RepresentationCollection;
14
use Yii;
15
16
class ServiceRepresentations extends RepresentationCollection
17
{
18
    protected function fillRepresentations()
19
    {
20
        $this->representations = array_filter([
21
            'common' => [
22
                'label' => Yii::t('hipanel', 'common'),
23
                'columns' => [
24
                    'seller_id',
25
                    'client_id',
26
                    'server',
27
                    'actions',
28
                    'object',
29
                    'ip',
30
                    'soft',
31
                    'state',
32
                ],
33
            ],
34
        ]);
35
    }
36
}
37

src/grid/PrefixRepresentations.php 1 location

@@ 16-37 (lines=22) @@
13
use hiqdev\higrid\representations\RepresentationCollection;
14
use Yii;
15
16
class PrefixRepresentations extends RepresentationCollection
17
{
18
    protected function fillRepresentations()
19
    {
20
        $this->representations = array_filter([
21
            'common' => [
22
                'label' => Yii::t('hipanel', 'common'),
23
                'columns' => [
24
                    'checkbox',
25
                    'actions',
26
                    'ip',
27
                    'type',
28
                    'vrf',
29
                    'role',
30
                    'site',
31
                    'utilization',
32
                    'note',
33
                ],
34
            ],
35
        ]);
36
    }
37
}
38