Code Duplication    Length = 11-12 lines in 2 locations

code/models/BaseElement.php 2 locations

@@ 263-274 (lines=12) @@
260
    /**
261
     * @return string
262
     */
263
    public function getTitle()
264
    {
265
        if ($title = $this->getField('Title')) {
266
            return $title;
267
        } else {
268
            if (!$this->isInDb()) {
269
                return;
270
            }
271
272
            return $this->config()->title;
273
        }
274
    }
275
276
    /**
277
     * @return string
@@ 279-289 (lines=11) @@
276
    /**
277
     * @return string
278
     */
279
    public function getCMSTitle()
280
    {
281
        if ($title = $this->getField('Title')) {
282
            return $this->config()->title . ': ' . $title;
283
        } else {
284
            if (!$this->isInDb()) {
285
                return;
286
            }
287
            return $this->config()->title;
288
        }
289
    }
290
291
    public function ControllerTop()
292
    {