From c8687d35d8c4d3c6b8b14935dc2b6211c20d230f Mon Sep 17 00:00:00 2001 From: Nicola Mustone Date: Wed, 8 Apr 2015 16:28:06 +0200 Subject: [PATCH] methods don't return anything --- includes/class-wc-validation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-wc-validation.php b/includes/class-wc-validation.php index 3bd83592601..30143a95377 100644 --- a/includes/class-wc-validation.php +++ b/includes/class-wc-validation.php @@ -131,7 +131,7 @@ class WC_Validation { * @return string formatted postcode */ public static function format_postcode( $postcode, $country ) { - wc_format_postcode( $postcode, $country ); + return wc_format_postcode( $postcode, $country ); } /** @@ -142,6 +142,6 @@ class WC_Validation { * @return string */ public static function format_phone( $tel ) { - wc_format_phone_number( $tel ); + return wc_format_phone_number( $tel ); } }