Code Duplication    Length = 11-12 lines in 2 locations

code/models/BaseElement.php 2 locations

@@ 299-310 (lines=12) @@
296
    /**
297
     * @return string
298
     */
299
    public function getTitle()
300
    {
301
        if ($title = $this->getField('Title')) {
302
            return $title;
303
        } else {
304
            if (!$this->isInDb()) {
305
                return;
306
            }
307
308
            return $this->config()->title;
309
        }
310
    }
311
312
    /**
313
     * Get a unique anchor name
@@ 352-362 (lines=11) @@
349
    /**
350
     * @return string
351
     */
352
    public function getCMSTitle()
353
    {
354
        if ($title = $this->getField('Title')) {
355
            return $this->config()->title . ': ' . $title;
356
        } else {
357
            if (!$this->isInDb()) {
358
                return;
359
            }
360
            return $this->config()->title;
361
        }
362
    }
363
364
    public function ControllerTop()
365
    {