@@ -1758,7 +1758,7 @@ discard block |
||
1758 | 1758 | * Normalizes a string of characters representing a phone number. This converts wide-ascii and |
1759 | 1759 | * arabic-indic numerals to European numerals, and strips punctuation and alpha characters. |
1760 | 1760 | * |
1761 | - * @param $number string a string of characters representing a phone number |
|
1761 | + * @param string $number string a string of characters representing a phone number |
|
1762 | 1762 | * @return string the normalized string version of the phone number |
1763 | 1763 | */ |
1764 | 1764 | public static function normalizeDigitsOnly($number) |
@@ -2660,7 +2660,7 @@ discard block |
||
2660 | 2660 | |
2661 | 2661 | /** |
2662 | 2662 | * Cleans all non-digit characters off of a phone number preserving a leading + sign if one is supplied. |
2663 | - * @param $phoneNumber String phone number that you want to clean |
|
2663 | + * @param string $phoneNumber String phone number that you want to clean |
|
2664 | 2664 | * @return string |
2665 | 2665 | */ |
2666 | 2666 | public function cleanPhoneNumber($phoneNumber) |
@@ -2721,7 +2721,7 @@ discard block |
||
2721 | 2721 | * |
2722 | 2722 | * @param PhoneNumber $number the phone number to be formatted |
2723 | 2723 | * @param int $numberFormat the format the phone number should be formatted into |
2724 | - * @param array $userDefinedFormats formatting rules specified by clients |
|
2724 | + * @param NumberFormat[] $userDefinedFormats formatting rules specified by clients |
|
2725 | 2725 | * @return String the formatted phone number |
2726 | 2726 | */ |
2727 | 2727 | public function formatByPattern(PhoneNumber $number, $numberFormat, array $userDefinedFormats) |
@@ -3114,6 +3114,10 @@ discard block |
||
3114 | 3114 | $this->stringEndsWithString($secondNumberNationalNumber, $firstNumberNationalNumber); |
3115 | 3115 | } |
3116 | 3116 | |
3117 | + /** |
|
3118 | + * @param string $hayStack |
|
3119 | + * @param string $needle |
|
3120 | + */ |
|
3117 | 3121 | protected function stringEndsWithString($hayStack, $needle) |
3118 | 3122 | { |
3119 | 3123 | $revNeedle = strrev($needle); |