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

Single   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

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