Code Duplication    Length = 8-8 lines in 2 locations

src/Ruleset.php 2 locations

@@ 1069-1076 (lines=8) @@
1066
1067
            $ignorePatterns = array();
1068
            $patterns       = $this->getIgnorePatterns($sniffCode);
1069
            foreach ($patterns as $pattern => $type) {
1070
                $replacements = array(
1071
                                 '\\,' => ',',
1072
                                 '*'   => '.*',
1073
                                );
1074
1075
                $ignorePatterns[] = strtr($pattern, $replacements);
1076
            }
1077
1078
            $includePatterns = array();
1079
            $patterns        = $this->getIncludePatterns($sniffCode);
@@ 1080-1087 (lines=8) @@
1077
1078
            $includePatterns = array();
1079
            $patterns        = $this->getIncludePatterns($sniffCode);
1080
            foreach ($patterns as $pattern => $type) {
1081
                $replacements = array(
1082
                                 '\\,' => ',',
1083
                                 '*'   => '.*',
1084
                                );
1085
1086
                $includePatterns[] = strtr($pattern, $replacements);
1087
            }
1088
1089
            foreach ($tokens as $token) {
1090
                if (isset($this->tokenListeners[$token]) === false) {