Test Failed
Pull Request — master (#97)
by Gildonei
03:38
created

Md5   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A toView() 0 3 2
1
<?php
2
3
namespace Ubiquity\contents\transformation\transformers;
4
5
use Ubiquity\contents\transformation\TransformerViewInterface;
6
7
class Md5 implements TransformerViewInterface {
8
9
	public static function toView($value) {
10
		if ($value != null)
11
			return md5 ( $value );
12
	}
13
}