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

Md5::toView()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
crap 6
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
}