Code Duplication    Length = 8-8 lines in 3 locations

htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Lexer/PH5P.php 3 locations

@@ 4042-4049 (lines=8) @@
4039
        ) {
4040
            /* If the current node is an option element, act as if an end tag
4041
            with the tag name "option" had been seen. */
4042
            if (end($this->stack)->nodeName === 'option') {
4043
                $this->inSelect(
4044
                    array(
4045
                        'name' => 'option',
4046
                        'type' => HTML5::ENDTAG
4047
                    )
4048
                );
4049
            }
4050
4051
            /* Insert an HTML element for the token. */
4052
            $this->insertElement($token);
@@ 4060-4067 (lines=8) @@
4057
        ) {
4058
            /* If the current node is an option element, act as if an end tag
4059
            with the tag name "option" had been seen. */
4060
            if (end($this->stack)->nodeName === 'option') {
4061
                $this->inSelect(
4062
                    array(
4063
                        'name' => 'option',
4064
                        'type' => HTML5::ENDTAG
4065
                    )
4066
                );
4067
            }
4068
4069
            /* If the current node is an optgroup element, act as if an end tag
4070
            with the tag name "optgroup" had been seen. */
@@ 4071-4078 (lines=8) @@
4068
4069
            /* If the current node is an optgroup element, act as if an end tag
4070
            with the tag name "optgroup" had been seen. */
4071
            if (end($this->stack)->nodeName === 'optgroup') {
4072
                $this->inSelect(
4073
                    array(
4074
                        'name' => 'optgroup',
4075
                        'type' => HTML5::ENDTAG
4076
                    )
4077
                );
4078
            }
4079
4080
            /* Insert an HTML element for the token. */
4081
            $this->insertElement($token);