| Conditions | 7 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 188 | public static function getCurrency($data) |
||
| 189 | { |
||
| 190 | $output = false; |
||
| 191 | $base = array_flip(self::$countrys); |
||
| 192 | if(strlen($data)==2){ |
||
| 193 | if(array_key_exists($data, $base)) { |
||
| 194 | foreach($base as $key => $value){ |
||
| 195 | if($key==$data) $output = $value; |
||
| 196 | } |
||
| 197 | } |
||
| 198 | }else{ |
||
| 199 | foreach($base as $key => $value){ |
||
| 200 | if($value==$data) $output = $value; |
||
| 201 | } |
||
| 202 | } |
||
| 203 | return $output; |
||
| 204 | } |
||
| 206 |