Code Duplication    Length = 11-12 lines in 2 locations

code/models/BaseElement.php 2 locations

@@ 198-209 (lines=12) @@
195
    /**
196
     * @return string
197
     */
198
    public function getTitle()
199
    {
200
        if ($title = $this->getField('Title')) {
201
            return $title;
202
        } else {
203
            if (!$this->isInDb()) {
204
                return;
205
            }
206
207
            return $this->config()->title;
208
        }
209
    }
210
211
    /**
212
     * @return string
@@ 214-224 (lines=11) @@
211
    /**
212
     * @return string
213
     */
214
    public function getCMSTitle()
215
    {
216
        if ($title = $this->getField('Title')) {
217
            return $this->config()->title . ': ' . $title;
218
        } else {
219
            if (!$this->isInDb()) {
220
                return;
221
            }
222
            return $this->config()->title;
223
        }
224
    }
225
226
    public function ControllerTop()
227
    {