ConfigRepresentations   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 9
c 2
b 0
f 0
dl 0
loc 12
ccs 0
cts 2
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A fillRepresentations() 0 10 1
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