Completed
Push — AsYouTypeFormatter ( 07294b )
by Joshua
10:04
created
src/AsYouTypeFormatter.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -308,6 +308,9 @@  discard block
 block discarded – undo
308 308
         return $eligibleFormatMatcher->matches();
309 309
     }
310 310
 
311
+    /**
312
+     * @param string $leadingDigits
313
+     */
311 314
     private function narrowDownPossibleFormats($leadingDigits)
312 315
     {
313 316
         $indexOfLeadingDigitsPattern = mb_strlen($leadingDigits) - self::$minLeadingDigitsLength;
@@ -567,6 +570,9 @@  discard block
 block discarded – undo
567 570
         return ($this->extractedNationalPrefix !== $this->removeNationalPrefixFromNationalNumber());
568 571
     }
569 572
 
573
+    /**
574
+     * @param string $nextChar
575
+     */
570 576
     private function isDigitOrLeadingPlusSign($nextChar)
571 577
     {
572 578
         $plusCharsMatcher = new Matcher(PhoneNumberUtil::$PLUS_CHARS_PATTERN, $nextChar);
@@ -622,7 +628,7 @@  discard block
 block discarded – undo
622 628
      * Combines the national number with any prefix (IDD/+ and country code or national prefix) that
623 629
      * was collected. A space will be inserted between them if the current formatting template
624 630
      * indicates this to be suitable.
625
-     * @param $nationalNumber
631
+     * @param string $nationalNumber
626 632
      * @return string
627 633
      */
628 634
     private function appendNationalNumber($nationalNumber)
Please login to merge, or discard this patch.