@@ -189,15 +189,15 @@ |
||
| 189 | 189 | { |
| 190 | 190 | $output = false; |
| 191 | 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; |
|
| 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 | 196 | } |
| 197 | 197 | } |
| 198 | - }else{ |
|
| 199 | - foreach($base as $key => $value){ |
|
| 200 | - if($value==$data) $output = $value; |
|
| 198 | + }else { |
|
| 199 | + foreach ($base as $key => $value) { |
|
| 200 | + if ($value==$data) $output = $value; |
|
| 201 | 201 | } |
| 202 | 202 | } |
| 203 | 203 | return $output; |