Passed
Push — master ( 5de986...4c5faf )
by Chris
02:41
created

LazyFormatter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A formatData() 0 3 1
A formatInput() 0 3 1
1
<?php
2
3
namespace WebTheory\Saveyour\Formatters;
4
5
use WebTheory\Saveyour\Contracts\DataFormatterInterface;
6
7
class LazyFormatter implements DataFormatterInterface
8
{
9
    /**
10
     *
11
     */
12 6
    public function formatData($value)
13
    {
14 6
        return $value;
15
    }
16
17
    /**
18
     *
19
     */
20 9
    public function formatInput($value)
21
    {
22 9
        return $value;
23
    }
24
}
25