| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 | } |
||
| 29 |