Code Duplication    Length = 9-9 lines in 2 locations

src/POData/HttpProcessUtility.php 2 locations

@@ 389-397 (lines=9) @@
386
     * 
387
     * @return boolean true if the end of the string was reached, false otherwise.
388
     */
389
    public static function skipWhiteSpace($text, &$textIndex)
390
    {
391
        $textLen = strlen($text);
392
        while (($textIndex < $textLen) && Char::isWhiteSpace($text[$textIndex])) {
393
            $textIndex++;
394
        }
395
396
        return $textLen == $textIndex;
397
    }
398
399
    /**
400
     * Reads the type and subtype specifications for a MIME type.
@@ 452-460 (lines=9) @@
449
     * 
450
     * @return boolean true if the end of the text was reached; false otherwise.
451
     */
452
    public static function readToken($text, &$textIndex)
453
    {
454
        $textLen = strlen($text);
455
        while (($textIndex < $textLen) && self::isHttpTokenChar($text[$textIndex])) {
456
            $textIndex++;
457
        }
458
459
        return $textLen == $textIndex;
460
    }
461
462
    /**
463
     * To check whether the given character is a HTTP token character