Completed
Push — codeCleanup ( 5cc3fa )
by Joshua
25:25
created
build/libphonenumber/buildtools/BuildMetadataFromXml.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -245,6 +245,9 @@  discard block
 block discarded – undo
245 245
         }
246 246
     }
247 247
 
248
+    /**
249
+     * @param string $nationalPrefix
250
+     */
248 251
     private static function getDomesticCarrierCodeFormattingRuleFromElement(\DOMElement $element, $nationalPrefix)
249 252
     {
250 253
         $carrierCodeFormattingRule = $element->getAttribute(self::CARRIER_CODE_FORMATTING_RULE);
@@ -431,7 +434,7 @@  discard block
 block discarded – undo
431 434
     }
432 435
 
433 436
     /**
434
-     * @param $metadataCollection PhoneMetadata[]
437
+     * @param PhoneMetadata[] $metadataCollection PhoneMetadata[]
435 438
      * @return array
436 439
      */
437 440
     public static function buildCountryCodeToRegionCodeMap($metadataCollection)
Please login to merge, or discard this patch.
build/libphonenumber/buildtools/GeneratePhonePrefixData.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      * Reads phone prefix data from the provides file path and invokes the given handler for each
158 158
      * mapping read.
159 159
      *
160
-     * @param $filePath
160
+     * @param string $filePath
161 161
      * @param $handler
162 162
      * @return array
163 163
      * @throws \InvalidArgumentException
@@ -204,6 +204,9 @@  discard block
 block discarded – undo
204 204
         return $this->getFilePath($language . DIRECTORY_SEPARATOR . $code . self::DATA_FILE_EXTENSION);
205 205
     }
206 206
 
207
+    /**
208
+     * @param string $fileName
209
+     */
207 210
     private function getFilePath($fileName)
208 211
     {
209 212
         $path = $this->inputDir . $fileName;
@@ -279,6 +282,9 @@  discard block
 block discarded – undo
279 282
         $this->compressAccordingToEnglishData($this->englishMaps[$countryCode], $mappings);
280 283
     }
281 284
 
285
+    /**
286
+     * @param string $textFile
287
+     */
282 288
     private function getEnglishDataPath($textFile)
283 289
     {
284 290
         return "en" . DIRECTORY_SEPARATOR . substr($textFile, 3, 2) . self::DATA_FILE_EXTENSION;
Please login to merge, or discard this patch.
src/libphonenumber/geocoding/PhoneNumberOfflineGeocoder.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@  discard block
 block discarded – undo
25 25
      */
26 26
     private $prefixFileReader = null;
27 27
 
28
+    /**
29
+     * @param string $phonePrefixDataDirectory
30
+     */
28 31
     private function __construct($phonePrefixDataDirectory)
29 32
     {
30 33
         if(!extension_loaded('intl')) {
@@ -104,7 +107,7 @@  discard block
 block discarded – undo
104 107
      * number is from. If it could be from many territories, nothing is returned.
105 108
      *
106 109
      * @param PhoneNumber $number
107
-     * @param $locale
110
+     * @param string $locale
108 111
      * @return string
109 112
      */
110 113
     private function getCountryNameForNumber(PhoneNumber $number, $locale)
Please login to merge, or discard this patch.
src/libphonenumber/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.