Code Duplication    Length = 11-12 lines in 2 locations

code/models/BaseElement.php 2 locations

@@ 320-331 (lines=12) @@
317
    /**
318
     * @return string
319
     */
320
    public function getTitle()
321
    {
322
        if ($title = $this->getField('Title')) {
323
            return $title;
324
        } else {
325
            if (!$this->isInDb()) {
326
                return;
327
            }
328
329
            return $this->config()->title;
330
        }
331
    }
332
333
    /**
334
     * Get a unique anchor name
@@ 373-383 (lines=11) @@
370
    /**
371
     * @return string
372
     */
373
    public function getCMSTitle()
374
    {
375
        if ($title = $this->getField('Title')) {
376
            return $this->config()->title . ': ' . $title;
377
        } else {
378
            if (!$this->isInDb()) {
379
                return;
380
            }
381
            return $this->config()->title;
382
        }
383
    }
384
385
    public function ControllerTop()
386
    {