Code Duplication    Length = 9-9 lines in 6 locations

app/module/Albums/One/Album.php 1 location

@@ 242-250 (lines=9) @@
239
     * 
240
     * @return int
241
     */
242
    public function modifierFullName($type = '')
243
    {
244
        $name = $this->album['modifier_first_name'].' '.$this->album['modifier_surname'];
245
        if ('raw' === $type) {
246
            return $name;
247
        }
248
249
        return Text::escape($name);
250
    }
251
252
    /**
253
     * Checks whether the album has modified.

app/module/Categories/One/Category.php 1 location

@@ 206-214 (lines=9) @@
203
     * 
204
     * @return int
205
     */
206
    public function modifierFullName($type = '')
207
    {
208
        $name = $this->category['modifier_first_name'].' '.$this->category['modifier_surname'];
209
        if ('raw' === $type) {
210
            return $name;
211
        }
212
213
        return Text::escape($name);
214
    }
215
216
    /**
217
     * Checks whether the category has modified.

app/module/Galleries/One/Gallery.php 1 location

@@ 140-148 (lines=9) @@
137
     *
138
     * @return int
139
     */
140
    public function modifierFullName($type = '')
141
    {
142
        $name = $this->gallery['modifier_first_name'].' '.$this->gallery['modifier_surname'];
143
        if ('raw' === $type) {
144
            return $name;
145
        }
146
147
        return Text::escape($name);
148
    }
149
150
    /**
151
     * Checks whether the gallery has modified.

app/module/Pages/One/Admin/Page.php 1 location

@@ 65-73 (lines=9) @@
62
     * 
63
     * @return int
64
     */
65
    public function modifierFullName($type = '')
66
    {
67
        $name = $this->page['modifier_first_name'].' '.$this->page['modifier_surname'];
68
        if ('raw' === $type) {
69
            return $name;
70
        }
71
72
        return Text::escape($name);
73
    }
74
75
    /**
76
     * Checks whether the page has modified.

app/module/Articles/One/Article.php 2 locations

@@ 290-298 (lines=9) @@
287
     * 
288
     * @return string
289
     */
290
    public function adderFullName($type = '')
291
    {
292
        $name = trim($this->article['adder_first_name'].' '.$this->article['adder_surname']);
293
        if ('raw' === $type) {
294
            return $name;
295
        }
296
297
        return Text::escape($name);
298
    }
299
300
    /**
301
     * Returns modifier ID.
@@ 315-323 (lines=9) @@
312
     * 
313
     * @return int
314
     */
315
    public function modifierFullName($type = '')
316
    {
317
        $name = $this->article['modifier_first_name'].' '.$this->article['modifier_surname'];
318
        if ('raw' === $type) {
319
            return $name;
320
        }
321
322
        return Text::escape($name);
323
    }
324
325
    /**
326
     * Checks whether the article has modified.