Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5297-5308 (lines=12) @@
5294
	 * @param Array $properties
5295
	 * @return Array amended properties.
5296
	 */
5297
	public static function filter_register_request_body( $properties ) {
5298
		$tracking        = new Tracking();
5299
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5300
5301
		return array_merge(
5302
			$properties,
5303
			array(
5304
				'_ui' => $tracks_identity['_ui'],
5305
				'_ut' => $tracks_identity['_ut'],
5306
			)
5307
		);
5308
	}
5309
5310
	/**
5311
	 * Filters the token request body to include tracking properties.
@@ 5316-5327 (lines=12) @@
5313
	 * @param Array $properties
5314
	 * @return Array amended properties.
5315
	 */
5316
	public static function filter_token_request_body( $properties ) {
5317
		$tracking        = new Tracking();
5318
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5319
5320
		return array_merge(
5321
			$properties,
5322
			array(
5323
				'_ui' => $tracks_identity['_ui'],
5324
				'_ut' => $tracks_identity['_ut'],
5325
			)
5326
		);
5327
	}
5328
5329
	/**
5330
	 * If the db version is showing something other that what we've got now, bump it to current.