Passed
Push — master ( 446c00...d7e047 )
by Chris
02:29
created

LazyDataFormatter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10
c 0
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 LazyDataFormatter 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