Code Duplication    Length = 6-7 lines in 2 locations

include/phpmailer/extras/htmlfilter.php 2 locations

@@ 931-936 (lines=6) @@
928
                        if ('body' == $tagname) {
929
                            $tagname = 'div';
930
                        }
931
                        if (isset($open_tags[$tagname])
932
                            && $open_tags[$tagname] > 0) {
933
                            $open_tags[$tagname]--;
934
                        } else {
935
                            $tagname = false;
936
                        }
937
                    }
938
                }
939
            } else {
@@ 973-979 (lines=7) @@
970
                                $tagname = 'div';
971
                                $attary  = tln_body2div($attary, $trans_image_path);
972
                            }
973
                            if (1 == $tagtype) {
974
                                if (isset($open_tags[$tagname])) {
975
                                    $open_tags[$tagname]++;
976
                                } else {
977
                                    $open_tags[$tagname] = 1;
978
                                }
979
                            }
980
                            /**
981
                             * This is where we run other checks.
982
                             */