Passed
Push — master ( 0bc779...491b2f )
by Jean-Christophe
09:46
created

Md5   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

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 3
	public static function toView($value) {
10 3
		if ($value != null)
11 3
			return md5 ( $value );
12
	}
13
}