Passed
Push — master ( 5bd0b7...fe2b7e )
by Jean-Christophe
10:05 queued 48s
created

Password   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\utils\base\UString;
6
use Ubiquity\contents\transformation\TransformerViewInterface;
7
8
/**
9
 * Mask a password.
10
 * Ubiquity\contents\transformation\transformers$Password
11
 * This class is part of Ubiquity
12
 *
13
 * @author jcheron <[email protected]>
14
 * @version 1.0.0
15
 * @since 2.1.1
16
 */
17
class Password implements TransformerViewInterface {
18
19 3
	public static function toView($value) {
20 3
		if ($value != null)
21 3
			return UString::mask ( $value );
22
	}
23
}
24