Code Duplication    Length = 11-11 lines in 2 locations

code/model/BlogPost.php 1 location

@@ 343-353 (lines=11) @@
340
     *
341
     * @return null|Member
342
     */
343
    protected function getMember($member = null)
344
    {
345
        if (!$member) {
346
            $member = Member::currentUser();
347
        }
348
349
        if (is_numeric($member)) {
350
            $member = Member::get()->byID($member);
351
        }
352
353
        return $member;
354
    }
355
356
    /**

code/model/Blog.php 1 location

@@ 168-178 (lines=11) @@
165
     *
166
     * @return null|Member
167
     */
168
    protected function getMember($member = null)
169
    {
170
        if (!$member) {
171
            $member = Member::currentUser();
172
        }
173
174
        if (is_numeric($member)) {
175
            $member = Member::get()->byID($member);
176
        }
177
178
        return $member;
179
    }
180
181
    /**