Code Duplication    Length = 7-7 lines in 2 locations

includes/user/User.php 2 locations

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