TransformHelper   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 5
ccs 2
cts 2
cp 1
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A when() 0 3 2
1
<?php
2
3
namespace Rexlabs\Laravel\Smokescreen\Helpers;
4
5
trait TransformHelper
6
{
7 1
    public function when($condition, $whenTrue, $whenFalse = null)
8
    {
9 1
        return $condition ? $whenTrue : $whenFalse;
10
    }
11
}
12