Code Duplication    Length = 9-9 lines in 2 locations

src/wordlift/dataset/class-sync-user-hooks.php 2 locations

@@ 80-88 (lines=9) @@
77
		$this->enqueue( array( 'do_sync', $user_id ) );
78
	}
79
80
	public function do_sync( $user_id ) {
81
82
		try {
83
			$this->sync_service->sync_one( Object_Type_Enum::USER, (int) $user_id );
84
		} catch ( \Exception $e ) {
85
			$this->log->error( "An error occurred while trying to sync user $user_id: " . $e->getMessage(), $e );
86
		}
87
88
	}
89
90
	public function delete_user( $user_id ) {
91
		$this->enqueue( array( 'do_delete', $user_id ) );
@@ 94-102 (lines=9) @@
91
		$this->enqueue( array( 'do_delete', $user_id ) );
92
	}
93
94
	public function do_delete( $user_id ) {
95
		try {
96
			$this->sync_service->delete_one( Object_Type_Enum::USER, $user_id );
97
		} catch ( \Exception $e ) {
98
			$this->log->error( "An error occurred while trying to delete user $user_id: " . $e->getMessage(), $e );
99
		}
100
101
	}
102
103
}