@@ -847,7 +847,7 @@ discard block |
||
847 | 847 | * This version exists since calculating the phone number type is expensive; if we have already |
848 | 848 | * done this, we don't want to do it again. |
849 | 849 | * |
850 | - * @param PhoneNumber|PhoneNumberType $phoneNumberObjOrType A PhoneNumber object, or a PhoneNumberType integer |
|
850 | + * @param integer $phoneNumberObjOrType A PhoneNumber object, or a PhoneNumberType integer |
|
851 | 851 | * @param int|null $countryCallingCode Used when passing a PhoneNumberType |
852 | 852 | * @return bool |
853 | 853 | */ |
@@ -1801,7 +1801,7 @@ discard block |
||
1801 | 1801 | * Normalizes a string of characters representing a phone number. This converts wide-ascii and |
1802 | 1802 | * arabic-indic numerals to European numerals, and strips punctuation and alpha characters. |
1803 | 1803 | * |
1804 | - * @param $number string a string of characters representing a phone number |
|
1804 | + * @param string $number string a string of characters representing a phone number |
|
1805 | 1805 | * @return string the normalized string version of the phone number |
1806 | 1806 | */ |
1807 | 1807 | public static function normalizeDigitsOnly($number) |
@@ -2747,7 +2747,7 @@ discard block |
||
2747 | 2747 | * |
2748 | 2748 | * @param PhoneNumber $number the phone number to be formatted |
2749 | 2749 | * @param int $numberFormat the format the phone number should be formatted into |
2750 | - * @param array $userDefinedFormats formatting rules specified by clients |
|
2750 | + * @param NumberFormat[] $userDefinedFormats formatting rules specified by clients |
|
2751 | 2751 | * @return String the formatted phone number |
2752 | 2752 | */ |
2753 | 2753 | public function formatByPattern(PhoneNumber $number, $numberFormat, array $userDefinedFormats) |
@@ -3140,6 +3140,10 @@ discard block |
||
3140 | 3140 | $this->stringEndsWithString($secondNumberNationalNumber, $firstNumberNationalNumber); |
3141 | 3141 | } |
3142 | 3142 | |
3143 | + /** |
|
3144 | + * @param string $hayStack |
|
3145 | + * @param string $needle |
|
3146 | + */ |
|
3143 | 3147 | protected function stringEndsWithString($hayStack, $needle) |
3144 | 3148 | { |
3145 | 3149 | $revNeedle = strrev($needle); |