Code Duplication    Length = 7-7 lines in 2 locations

includes/user/User.php 2 locations

@@ 2258-2264 (lines=7) @@
2255
			[ $field => $id, 'user_last_timestamp' => $dbw->timestampOrNull( $ts ) ],
2256
			__METHOD__,
2257
			'IGNORE' );
2258
		if ( $dbw->affectedRows() ) {
2259
			wfDebug( __METHOD__ . ": set on ($field, $id)\n" );
2260
			return true;
2261
		} else {
2262
			wfDebug( __METHOD__ . " already set ($field, $id)\n" );
2263
			return false;
2264
		}
2265
	}
2266
2267
	/**
@@ 2278-2284 (lines=7) @@
2275
		$dbw->delete( 'user_newtalk',
2276
			[ $field => $id ],
2277
			__METHOD__ );
2278
		if ( $dbw->affectedRows() ) {
2279
			wfDebug( __METHOD__ . ": killed on ($field, $id)\n" );
2280
			return true;
2281
		} else {
2282
			wfDebug( __METHOD__ . ": already gone ($field, $id)\n" );
2283
			return false;
2284
		}
2285
	}
2286
2287
	/**