Code Duplication    Length = 7-7 lines in 2 locations

htdocs/class/libraries/vendor/kint-php/kint/src/SourceParser.php 2 locations

@@ 378-384 (lines=7) @@
375
376
    private static function tokensTrim(array $tokens)
377
    {
378
        foreach ($tokens as $index => $token) {
379
            if (isset(self::$ignore[$token[0]])) {
380
                unset($tokens[$index]);
381
            } else {
382
                break;
383
            }
384
        }
385
386
        $tokens = array_reverse($tokens);
387
@@ 388-394 (lines=7) @@
385
386
        $tokens = array_reverse($tokens);
387
388
        foreach ($tokens as $index => $token) {
389
            if (isset(self::$ignore[$token[0]])) {
390
                unset($tokens[$index]);
391
            } else {
392
                break;
393
            }
394
        }
395
396
        return array_reverse($tokens);
397
    }