Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 890-901 (lines=12) @@
887
            $this->char--;
888
            $this->state = 'data';
889
890
        } else {
891
            /* Anything else
892
            Start a new attribute in the current tag token. Set that attribute's
893
            name to the current input character, and its value to the empty string.
894
            Switch to the attribute name state. */
895
            $this->token['attr'][] = array(
896
                'name' => strtolower($char),
897
                'value' => null
898
            );
899
900
            $this->state = 'attributeName';
901
        }
902
    }
903
904
    private function attributeNameState()
@@ 997-1008 (lines=12) @@
994
            $this->char--;
995
            $this->state = 'data';
996
997
        } else {
998
            /* Anything else
999
            Start a new attribute in the current tag token. Set that attribute's
1000
            name to the current input character, and its value to the empty string.
1001
            Switch to the attribute name state. */
1002
            $this->token['attr'][] = array(
1003
                'name' => strtolower($char),
1004
                'value' => null
1005
            );
1006
1007
            $this->state = 'attributeName';
1008
        }
1009
    }
1010
1011
    private function beforeAttributeValueState()