Code Duplication    Length = 8-9 lines in 2 locations

src/Helpers/String.php 2 locations

@@ 549-556 (lines=8) @@
546
    {
547
        $tOutput = "";
548
549
        for ($tCount = 0, $tLen = self::length($uString); $tCount < $tLen; $tCount++) {
550
            $tChar = self::substr($uString, $tCount, 1);
551
            if (self::strpos($uValidChars, $tChar) === false) {
552
                continue;
553
            }
554
555
            $tOutput .= $tChar;
556
        }
557
558
        return $tOutput;
559
    }
@@ 1483-1491 (lines=9) @@
1480
        ];
1481
        $tOutput = "";
1482
1483
        for ($tCount = 0, $tLen = self::length($uString); $tCount < $tLen; $tCount++) {
1484
            $tChar = self::substr($uString, $tCount, 1);
1485
1486
            if (in_array(ord($tChar), $tInvisibles)) {
1487
                continue;
1488
            }
1489
1490
            $tOutput .= $tChar;
1491
        }
1492
1493
        return $tOutput;
1494
    }