EnumRowItemBuilder::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 6
rs 10
1
<?php
2
declare(strict_types=1);
3
4
namespace hipanel\rbac\console\converter\formatter;
5
6
class EnumRowItemBuilder extends DefaultEnumRowItemBuilder
7
{
8
    public function build(string $value): string
9
    {
10
        [,$newValue] = explode(':', $value);
11
        $key = $this->toCamelCase($newValue);
12
13
        return $this->renderKeyValue($key, $value);
14
    }
15
}
16