Test Failed
Pull Request — master (#23)
by Jean-Christophe
12:28
created

LowerCase::toView()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
3
namespace Ubiquity\contents\transformation\transformers;
4
5
use Ubiquity\contents\transformation\TransformerViewInterface;
6
7
/**
8
 * Make a string lowercase.
9
 * Ubiquity\contents\transformation\transformers$LowerCase
10
 * This class is part of Ubiquity
11
 *
12
 * @author jcheron <[email protected]>
13
 * @version 1.0.0
14
 * @since 2.1.1
15
 */
16
class LowerCase implements TransformerViewInterface {
17
18
	public static function toView($value) {
19
		if ($value != null)
20
			return strtolower ( $value );
21
	}
22
}
23