Code Duplication    Length = 8-8 lines in 2 locations

code/extensions/TicketExtension.php 2 locations

@@ 299-306 (lines=8) @@
296
     *
297
     * @return mixed|string
298
     */
299
    public function getSuccessContent()
300
    {
301
        if (!empty($this->owner->SuccessMessage)) {
302
            return $this->owner->dbObject('SuccessMessage');
303
        } else {
304
            return SiteConfig::current_site_config()->dbObject('SuccessMessage');
305
        }
306
    }
307
308
    /**
309
     * Get the mail message
@@ 313-320 (lines=8) @@
310
     *
311
     * @return mixed|string
312
     */
313
    public function getMailContent()
314
    {
315
        if (!empty($this->owner->SuccessMessageMail)) {
316
            return $this->owner->dbObject('SuccessMessageMail');
317
        } else {
318
            return SiteConfig::current_site_config()->dbObject('SuccessMessageMail');
319
        }
320
    }
321
322
    /**
323
     * Get the Ticket logo