Completed
Pull Request — master (#164)
by Joshua
09:55
created
src/PhoneNumberUtil.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1876,7 +1876,7 @@  discard block
 block discarded – undo
1876 1876
      * Normalizes a string of characters representing a phone number. This converts wide-ascii and
1877 1877
      * arabic-indic numerals to European numerals, and strips punctuation and alpha characters.
1878 1878
      *
1879
-     * @param $number string  a string of characters representing a phone number
1879
+     * @param string|null $number string  a string of characters representing a phone number
1880 1880
      * @return string the normalized string version of the phone number
1881 1881
      */
1882 1882
     public static function normalizeDigitsOnly($number)
@@ -2850,7 +2850,7 @@  discard block
 block discarded – undo
2850 2850
      *
2851 2851
      * @param PhoneNumber $number the phone number to be formatted
2852 2852
      * @param int $numberFormat the format the phone number should be formatted into
2853
-     * @param array $userDefinedFormats formatting rules specified by clients
2853
+     * @param NumberFormat[] $userDefinedFormats formatting rules specified by clients
2854 2854
      * @return String the formatted phone number
2855 2855
      */
2856 2856
     public function formatByPattern(PhoneNumber $number, $numberFormat, array $userDefinedFormats)
@@ -3244,6 +3244,10 @@  discard block
 block discarded – undo
3244 3244
         $this->stringEndsWithString($secondNumberNationalNumber, $firstNumberNationalNumber);
3245 3245
     }
3246 3246
 
3247
+    /**
3248
+     * @param string $hayStack
3249
+     * @param string $needle
3250
+     */
3247 3251
     protected function stringEndsWithString($hayStack, $needle)
3248 3252
     {
3249 3253
         $revNeedle = strrev($needle);
Please login to merge, or discard this patch.