Completed
Push — master ( 17d161...0d226c )
by Klochok
06:57
created

IpRepresentations::fillRepresentations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 16
ccs 0
cts 8
cp 0
rs 9.4285
cc 1
eloc 11
nc 1
nop 0
crap 2
1
<?php
2
3
namespace hipanel\modules\hosting\grid;
4
5
use hiqdev\higrid\representations\RepresentationCollection;
6
use Yii;
7
8
class IpRepresentations extends RepresentationCollection
9
{
10
    protected function fillRepresentations()
11
    {
12
        $this->representations = array_filter([
13
            'common' => [
14
                'label' => Yii::t('hipanel', 'common'),
15
                'columns' => [
16
                    'ip',
17
                    'note',
18
                    'actions',
19
                    'tags',
20
                    'counters',
21
                    'links',
22
                ],
23
            ],
24
        ]);
25
    }
26
}
27