Code Duplication    Length = 4-4 lines in 5 locations

htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Lexer/DirectLex.php 5 locations

@@ 140-143 (lines=4) @@
137
                        )
138
                    )
139
                );
140
                if ($maintain_line_numbers) {
141
                    $token->rawPosition($current_line, $current_col);
142
                    $current_line += $this->substrCount($html, $nl, $cursor, $position_next_lt - $cursor);
143
                }
144
                $array[] = $token;
145
                $cursor = $position_next_lt + 1;
146
                $inside_tag = true;
@@ 230-233 (lines=4) @@
227
                if ($is_end_tag) {
228
                    $type = substr($segment, 1);
229
                    $token = new HTMLPurifier_Token_End($type);
230
                    if ($maintain_line_numbers) {
231
                        $token->rawPosition($current_line, $current_col);
232
                        $current_line += $this->substrCount($html, $nl, $cursor, $position_next_gt - $cursor);
233
                    }
234
                    $array[] = $token;
235
                    $inside_tag = false;
236
                    $cursor = $position_next_gt + 1;
@@ 249-252 (lines=4) @@
246
                        $e->send(E_NOTICE, 'Lexer: Unescaped lt');
247
                    }
248
                    $token = new HTMLPurifier_Token_Text('<');
249
                    if ($maintain_line_numbers) {
250
                        $token->rawPosition($current_line, $current_col);
251
                        $current_line += $this->substrCount($html, $nl, $cursor, $position_next_gt - $cursor);
252
                    }
253
                    $array[] = $token;
254
                    $inside_tag = false;
255
                    continue;
@@ 277-280 (lines=4) @@
274
                    } else {
275
                        $token = new HTMLPurifier_Token_Start($segment);
276
                    }
277
                    if ($maintain_line_numbers) {
278
                        $token->rawPosition($current_line, $current_col);
279
                        $current_line += $this->substrCount($html, $nl, $cursor, $position_next_gt - $cursor);
280
                    }
281
                    $array[] = $token;
282
                    $inside_tag = false;
283
                    $cursor = $position_next_gt + 1;
@@ 311-314 (lines=4) @@
308
                } else {
309
                    $token = new HTMLPurifier_Token_Start($type, $attr);
310
                }
311
                if ($maintain_line_numbers) {
312
                    $token->rawPosition($current_line, $current_col);
313
                    $current_line += $this->substrCount($html, $nl, $cursor, $position_next_gt - $cursor);
314
                }
315
                $array[] = $token;
316
                $cursor = $position_next_gt + 1;
317
                $inside_tag = false;