Code Duplication    Length = 11-12 lines in 2 locations

code/models/BaseElement.php 2 locations

@@ 285-296 (lines=12) @@
282
    /**
283
     * @return string
284
     */
285
    public function getTitle()
286
    {
287
        if ($title = $this->getField('Title')) {
288
            return $title;
289
        } else {
290
            if (!$this->isInDb()) {
291
                return;
292
            }
293
294
            return $this->config()->title;
295
        }
296
    }
297
298
    /**
299
     * Get a unique anchor name
@@ 338-348 (lines=11) @@
335
    /**
336
     * @return string
337
     */
338
    public function getCMSTitle()
339
    {
340
        if ($title = $this->getField('Title')) {
341
            return $this->config()->title . ': ' . $title;
342
        } else {
343
            if (!$this->isInDb()) {
344
                return;
345
            }
346
            return $this->config()->title;
347
        }
348
    }
349
350
    public function ControllerTop()
351
    {