@@ -63,10 +63,11 @@ |
||
63 | 63 | * @return void |
64 | 64 | */ |
65 | 65 | public function validate_usa_zipcode( $zip_code ) { |
66 | - if ( preg_match("/^([0-9]{5})(-[0-9]{4})?$/i", $zip_code) ) |
|
67 | - return true; |
|
68 | - else |
|
69 | - return false; |
|
66 | + if ( preg_match("/^([0-9]{5})(-[0-9]{4})?$/i", $zip_code) ) { |
|
67 | + return true; |
|
68 | + } else { |
|
69 | + return false; |
|
70 | + } |
|
70 | 71 | } |
71 | 72 | |
72 | 73 |