Passed
Push — master ( a35b5f...c35142 )
by Vitor de
02:29
created

Option   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 9
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 6 3
1
<?php
2
3
namespace GFG\Mapper\Data\Type;
4
5
class Option extends Base
6
{
7 3
    public function run(&$data, $key = null)
8
    {
9 3
        foreach ($data as &$value) {
10 3
            $value = $this->get($key ? "{$key}_{$value}" : $value);
11 3
        }
12 3
    }
13
}
14