Index: branches/5.3.x/units/helpers/order_helper.php =================================================================== diff -u -r15492 -r16506 --- branches/5.3.x/units/helpers/order_helper.php (.../order_helper.php) (revision 15492) +++ branches/5.3.x/units/helpers/order_helper.php (.../order_helper.php) (revision 16506) @@ -169,15 +169,33 @@ } /** - * Detects credit card type by it's number + * Detects credit card type by it's number. * - * @param string $number - * @return int - * @access public + * @param string $number Credit card number. + * + * @return integer + * @deprecated */ public function getCreditCartType($number) { - // Get rid of any non-digits + @trigger_error( + 'Usage of deprecated method OrderHelper::getCreditCartType. Use OrderHelper::getCreditCardType.', + E_USER_DEPRECATED + ); + + return $this->getCreditCardType($number); + } + + /** + * Detects credit card type by it's number. + * + * @param string $number Credit card number. + * + * @return integer + */ + public function getCreditCardType($number) + { + // Get rid of any non-digits. $number = preg_replace('/[^\d]/', '', $number); $mapping = Array (