Code Duplication    Length = 11-13 lines in 2 locations

lib/client/persist.php 1 location

@@ 17-29 (lines=13) @@
14
     *
15
     * @return array
16
     */
17
    protected function export_user() {
18
        $user_id = get_current_user_id();
19
        $user = get_userdata( $user_id );
20
21
        if ( $user ) {
22
            return array(
23
                'name'  => $user->display_name,
24
                'email' => $user->user_email,
25
            );
26
        }
27
28
        return false;
29
    }
30
31
    /**
32
     * Delete the file.

lib/post.php 1 location

@@ 308-318 (lines=11) @@
305
     *
306
     * Returns Array an array containing the author name and email
307
     */
308
    public function last_modified_author() {
309
        if ( $last_id = get_post_meta( $this->id, '_edit_last', true ) ) {
310
            $user = get_userdata( $last_id );
311
312
            if ( $user ) {
313
                return array( 'name' => $user->display_name, 'email' => $user->user_email );
314
            }
315
        }
316
317
        return array();
318
    }
319
320
    /**
321
     * The post's sha