Code Duplication    Length = 7-7 lines in 2 locations

includes/user/User.php 2 locations

@@ 2276-2282 (lines=7) @@
2273
			[ $field => $id, 'user_last_timestamp' => $dbw->timestampOrNull( $ts ) ],
2274
			__METHOD__,
2275
			'IGNORE' );
2276
		if ( $dbw->affectedRows() ) {
2277
			wfDebug( __METHOD__ . ": set on ($field, $id)\n" );
2278
			return true;
2279
		} else {
2280
			wfDebug( __METHOD__ . " already set ($field, $id)\n" );
2281
			return false;
2282
		}
2283
	}
2284
2285
	/**
@@ 2296-2302 (lines=7) @@
2293
		$dbw->delete( 'user_newtalk',
2294
			[ $field => $id ],
2295
			__METHOD__ );
2296
		if ( $dbw->affectedRows() ) {
2297
			wfDebug( __METHOD__ . ": killed on ($field, $id)\n" );
2298
			return true;
2299
		} else {
2300
			wfDebug( __METHOD__ . ": already gone ($field, $id)\n" );
2301
			return false;
2302
		}
2303
	}
2304
2305
	/**