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

Single::run()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 2
eloc 2
nc 1
nop 2
crap 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