Code Duplication    Length = 4-5 lines in 3 locations

src/Tokenizers/Comment.php 1 location

@@ 132-136 (lines=5) @@
129
            $lineTokens = $this->processLine($string, $eolChar, $char, $numChars);
130
            foreach ($lineTokens as $lineToken) {
131
                $tokens[$stackPtr] = $lineToken;
132
                if (PHP_CodeSniffer_VERBOSITY > 1) {
133
                    $content = Util\Common::prepareForOutput($lineToken['content']);
134
                    $type    = $lineToken['type'];
135
                    echo "\t\tCreate comment token: $type => $content".PHP_EOL;
136
                }
137
138
                if ($lineToken['code'] === T_DOC_COMMENT_TAG) {
139
                    $tokens[$openPtr]['comment_tags'][] = $stackPtr;

src/Tokenizers/CSS.php 1 location

@@ 425-428 (lines=4) @@
422
                        }
423
424
                        $newContent .= $finalTokens[$i]['content'];
425
                        if (PHP_CodeSniffer_VERBOSITY > 1) {
426
                            $content = Util\Common::prepareForOutput($finalTokens[$i]['content']);
427
                            echo "\t\t=> token $i added to URL string and ignored: $content".PHP_EOL;
428
                        }
429
430
                        unset($finalTokens[$i]);
431
                    }

src/Tokenizers/JS.php 1 location

@@ 622-626 (lines=5) @@
619
                if (isset($chars[($i - 2)]) === true && $chars[($i - 2)] === '\\') {
620
                    $lastToken   = array_pop($tokens);
621
                    $lastContent = $lastToken['content'];
622
                    if (PHP_CodeSniffer_VERBOSITY > 1) {
623
                        $value   = $this->tokenValues[strtolower($lastContent)];
624
                        $content = Util\Common::prepareForOutput($lastContent);
625
                        echo "\t=> Removed token $value ($content)".PHP_EOL;
626
                    }
627
628
                    $lastChars    = str_split($lastContent);
629
                    $lastNumChars = count($lastChars);