Completed
Push — 8.1.0-changes ( 082493 )
by Joshua
11:12
created
build/GeneratePhonePrefixData.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -318,6 +318,9 @@
 block discarded – undo
318 318
         $this->compressAccordingToEnglishData($this->englishMaps[$countryCode], $mappings);
319 319
     }
320 320
 
321
+    /**
322
+     * @param string $textFile
323
+     */
321 324
     private function getEnglishDataPath($textFile)
322 325
     {
323 326
         return "en" . DIRECTORY_SEPARATOR . substr($textFile, 3);
Please login to merge, or discard this patch.
src/geocoding/PhoneNumberOfflineGeocoder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
      * Returns the customary display name in the given language for the given region.
122 122
      *
123 123
      * @param $regionCode
124
-     * @param $locale
124
+     * @param string $locale
125 125
      * @return string
126 126
      */
127 127
     protected function getRegionDisplayName($regionCode, $locale)
Please login to merge, or discard this patch.
src/PhoneNumberUtil.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1744,7 +1744,7 @@  discard block
 block discarded – undo
1744 1744
      * Normalizes a string of characters representing a phone number. This converts wide-ascii and
1745 1745
      * arabic-indic numerals to European numerals, and strips punctuation and alpha characters.
1746 1746
      *
1747
-     * @param $number string  a string of characters representing a phone number
1747
+     * @param string $number string  a string of characters representing a phone number
1748 1748
      * @return string the normalized string version of the phone number
1749 1749
      */
1750 1750
     public static function normalizeDigitsOnly($number)
@@ -2682,7 +2682,7 @@  discard block
 block discarded – undo
2682 2682
      *
2683 2683
      * @param PhoneNumber $number the phone number to be formatted
2684 2684
      * @param int $numberFormat the format the phone number should be formatted into
2685
-     * @param array $userDefinedFormats formatting rules specified by clients
2685
+     * @param NumberFormat[] $userDefinedFormats formatting rules specified by clients
2686 2686
      * @return String the formatted phone number
2687 2687
      */
2688 2688
     public function formatByPattern(PhoneNumber $number, $numberFormat, array $userDefinedFormats)
@@ -2989,6 +2989,10 @@  discard block
 block discarded – undo
2989 2989
         $this->stringEndsWithString($secondNumberNationalNumber, $firstNumberNationalNumber);
2990 2990
     }
2991 2991
 
2992
+    /**
2993
+     * @param string $hayStack
2994
+     * @param string $needle
2995
+     */
2992 2996
     private function stringEndsWithString($hayStack, $needle)
2993 2997
     {
2994 2998
         $revNeedle = strrev($needle);
Please login to merge, or discard this patch.
src/prefixmapper/MappingFileProvider.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@
 block discarded – undo
42 42
         return "";
43 43
     }
44 44
 
45
+    /**
46
+     * @param string $countryCallingCode
47
+     */
45 48
     protected function inMap($language, $countryCallingCode)
46 49
     {
47 50
         return (array_key_exists($language, $this->map) && in_array($countryCallingCode, $this->map[$language]));
Please login to merge, or discard this patch.
tests/buildtools/BuildMetadataFromXmlTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     }
82 82
 
83 83
     /**
84
-     * @param $xmlString
84
+     * @param string $xmlString
85 85
      * @return \DOMElement
86 86
      */
87 87
     private function parseXMLString($xmlString)
Please login to merge, or discard this patch.
tests/Issues/Issue68Test.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@
 block discarded – undo
25 25
         $this->assertFalse($shortNumberInfo->isPossibleShortNumberForRegion($exampleNumber, 'NE'));
26 26
     }
27 27
 
28
+    /**
29
+     * @param string $region
30
+     */
28 31
     private function getExampleNumber($region)
29 32
     {
30 33
         $phoneUtil = PhoneNumberUtil::getInstance();
Please login to merge, or discard this patch.