Code Duplication    Length = 12-12 lines in 2 locations

src/Model/Blog.php 1 location

@@ 215-226 (lines=12) @@
212
     *
213
     * @return null|Member
214
     */
215
    protected function getMember($member = null)
216
    {
217
        if (!$member) {
218
            $member = Security::getCurrentUser();
219
        }
220
221
        if (is_numeric($member)) {
222
            $member = Member::get()->byID($member);
223
        }
224
225
        return $member;
226
    }
227
228
    /**
229
     * Check if this member is an editor of the blog.

src/Model/BlogPost.php 1 location

@@ 395-406 (lines=12) @@
392
     *
393
     * @return null|Member
394
     */
395
    protected function getMember($member = null)
396
    {
397
        if (!$member) {
398
            $member = Security::getCurrentUser();
399
        }
400
401
        if (is_numeric($member)) {
402
            $member = Member::get()->byID($member);
403
        }
404
405
        return $member;
406
    }
407
408
    /**
409
     * Determine whether user can create new categories.