ConfigRepresentations::fillRepresentations()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 8
c 2
b 0
f 0
dl 0
loc 10
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace hipanel\modules\server\grid;
4
5
use Yii;
6
use hiqdev\higrid\representations\RepresentationCollection;
7
8
class ConfigRepresentations 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', 'actions',
17
                    'state',
18
                    'name', 'client',
19
                    'config', 'tariffs', 'cc_servers', 'profiles',
20
                ],
21
            ],
22
        ]);
23
    }
24
}
25