Code Duplication    Length = 7-7 lines in 2 locations

includes/user/User.php 2 locations

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