Code Duplication    Length = 4-4 lines in 2 locations

admin/donations.php 2 locations

@@ 718-721 (lines=4) @@
715
                    if (!$pos) {
716
                        $rLentrySplit .= '<br />' . substr($rLentry, 0, $dispWidth);
717
                        $rLentry = substr($rLentry, $dispWidth);
718
                    } else {
719
                        $rLentrySplit .= '<br />' . substr($rLentry, 0, $pos + 1);
720
                        $rLentry = substr($rLentry, $pos);
721
                    }
722
                } else {
723
                    $rLentrySplit .= '<br />' . substr($rLentry, 0, $pos + 1);
724
                    $rLentry = substr($rLentry, $pos);
@@ 722-725 (lines=4) @@
719
                        $rLentrySplit .= '<br />' . substr($rLentry, 0, $pos + 1);
720
                        $rLentry = substr($rLentry, $pos);
721
                    }
722
                } else {
723
                    $rLentrySplit .= '<br />' . substr($rLentry, 0, $pos + 1);
724
                    $rLentry = substr($rLentry, $pos);
725
                }
726
            } while (strlen($rLentry) > $dispWidth);
727
            $$thisTray->addElement(new XoopsFormLabel(_AD_DON_LOG_ENTRY_TXT, $rLentrySplit . $rLentry));
728