Code Duplication    Length = 7-7 lines in 3 locations

lib/modules/mod_htmlparser.php 3 locations

@@ 86-92 (lines=7) @@
83
84
			do {
85
				switch (true) {
86
					case $yych === $scanner['class_attrib_start'][$yych] && ($YYSTATE == AR_HTMLPARSER_STATE_DOCTYPE):
87
						$value = $yych;
88
						while ($scanner['class_attrib_next'][$yych = $YYBUFFER[++$YYCURSOR]] == $yych) {
89
							$value .= $yych;
90
						}
91
						return AR_HTMLPARSER_T_ATTRIB_VAL;
92
					break;
93
					case $yych === '"' && ($YYSTATE == AR_HTMLPARSER_STATE_DOCTYPE):
94
						$yych = $yych = $YYBUFFER[++$YYCURSOR];
95
						while ($yych !== "\000" && $yych !== '"') {
@@ 168-174 (lines=7) @@
165
						}
166
						return AR_HTMLPARSER_T_OPEN_TAG;
167
					break;
168
					case $yych === $scanner['class_attrib_start'][$yych] && ($YYSTATE == AR_HTMLPARSER_STATE_OPEN_TAG):
169
						$value = $yych;
170
						while ($scanner['class_attrib_next'][$yych = $YYBUFFER[++$YYCURSOR]] == $yych) {
171
							$value .= $yych;
172
						}
173
						return AR_HTMLPARSER_T_ATTRIB;
174
					break;
175
					case $yych === $scanner['class_number'][$yych] && ($YYSTATE == AR_HTMLPARSER_STATE_OPEN_TAG):
176
						$value = $yych;
177
						while ($scanner['class_number'][$yych = $YYBUFFER[++$YYCURSOR]] == $yych) {
@@ 175-181 (lines=7) @@
172
						}
173
						return AR_HTMLPARSER_T_ATTRIB;
174
					break;
175
					case $yych === $scanner['class_number'][$yych] && ($YYSTATE == AR_HTMLPARSER_STATE_OPEN_TAG):
176
						$value = $yych;
177
						while ($scanner['class_number'][$yych = $YYBUFFER[++$YYCURSOR]] == $yych) {
178
							$value .= $yych;
179
						}
180
						return AR_HTMLPARSER_T_NUMBER;
181
					break;
182
					case $yych === '>' && (($YYSTATE == AR_HTMLPARSER_STATE_OPEN_TAG) || ($YYSTATE == AR_HTMLPARSER_STATE_CLOSE_TAG) || ($YYSTATE == AR_HTMLPARSER_STATE_DOCTYPE)):
183
						if ($YYCONTEXT == CONTEXT_SCRIPT) {
184
							$YYSTATE = AR_HTMLPARSER_STATE_SCRIPT;