Code Duplication    Length = 7-7 lines in 2 locations

src/main/php/PDepend/Source/Language/PHP/PHPTokenizerInternal.php 2 locations

@@ 797-803 (lines=7) @@
794
            if ($type) {
795
                $rtrim = rtrim($image);
796
                $lines = substr_count($rtrim, "\n");
797
                if ($lines === 0) {
798
                    $endColumn = $startColumn + strlen($rtrim) - 1;
799
                } else {
800
                    $endColumn = strlen(
801
                        substr($rtrim, strrpos($rtrim, "\n") + 1)
802
                    );
803
                }
804
805
                $endLine = $startLine + $lines;
806
@@ 817-823 (lines=7) @@
814
815
                // Count newlines in token
816
                $lines = substr_count($image, "\n");
817
                if ($lines === 0) {
818
                    $startColumn += strlen($image);
819
                } else {
820
                    $startColumn = strlen(
821
                        substr($image, strrpos($image, "\n") + 1)
822
                    ) + 1;
823
                }
824
825
                $startLine += $lines;
826