Code Duplication    Length = 4-4 lines in 2 locations

class/Mail.php 1 location

@@ 127-130 (lines=4) @@
124
                $subject = _SMALLWORLD_MAIL_NEWCOMMENT . $GLOBALS['xoopsConfig']['sitename'];
125
126
                $ownermessage = stripslashes($this->getOwnerUpdateFromMsgID($data['msg_id_fk']));
127
                if (preg_match('/UPLIMAGE/', $ownermessage)) {
128
                    $ownmsg       = str_replace('UPLIMAGE ', '', $ownermessage);
129
                    $ownermessage = "<img width='300px' src='" . $ownmsg . "' style='margin: 5px 0px;' >";
130
                }
131
132
                $owner           = smallworld_getOwnerFromComment($data['msg_id_fk']);
133
                $ownerXuser      = new \XoopsUser($owner);

class/SmallWorldMail.php 1 location

@@ 118-121 (lines=4) @@
115
            $subject = _SMALLWORLD_MAIL_NEWCOMMENT . $xoopsConfig['sitename'];
116
117
            $ownermessage = stripslashes($this->getOwnerUpdateFromMsgID($data['msg_id_fk']));
118
            if (preg_match('/UPLIMAGE/', $ownermessage)) {
119
                $ownmsg       = str_replace('UPLIMAGE ', '', $ownermessage);
120
                $ownermessage = "<img width='300px' src='" . $ownmsg . "' style='margin: 5px 0px;' >";
121
            }
122
123
            $owner            = Smallworld_getOwnerFromComment($data['msg_id_fk']);
124
            $OwnerUser        = new \XoopsUser($owner);