Passed
Push — master ( f63d0b...f41ba3 )
by Jean-Christophe
10:17
created

GitFileStatus   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 19
c 1
b 0
f 0
dl 0
loc 21
ccs 0
cts 16
cp 0
rs 10
1
<?php
2
3
namespace Ubiquity\utils\git;
4
5
class GitFileStatus {
6
	public static $UNTRACKED="untracked";
7
	public static $MODIFIED="modified";
8
	public static $DELETED="deleted";
9
	public static $NONE="";
10
	public static function getIcon($status){
11
		switch ($status){
12
			case self::$UNTRACKED:
13
				$icon="blue question";
14
				break;
15
			case self::$MODIFIED:
16
				$icon="green edit";
17
				break;
18
			case self::$DELETED:
19
				$icon="red remove";
20
				break;
21
			default:
22
				$icon="red question";
23
				break;
24
		}
25
		return $icon;
26
	}
27
}
28
29