Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5385-5396 (lines=12) @@
5382
	 * @param Array $properties
5383
	 * @return Array amended properties.
5384
	 */
5385
	public static function filter_register_request_body( $properties ) {
5386
		$tracking        = new Tracking();
5387
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5388
5389
		return array_merge(
5390
			$properties,
5391
			array(
5392
				'_ui' => $tracks_identity['_ui'],
5393
				'_ut' => $tracks_identity['_ut'],
5394
			)
5395
		);
5396
	}
5397
5398
	/**
5399
	 * Filters the token request body to include tracking properties.
@@ 5404-5415 (lines=12) @@
5401
	 * @param Array $properties
5402
	 * @return Array amended properties.
5403
	 */
5404
	public static function filter_token_request_body( $properties ) {
5405
		$tracking        = new Tracking();
5406
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5407
5408
		return array_merge(
5409
			$properties,
5410
			array(
5411
				'_ui' => $tracks_identity['_ui'],
5412
				'_ut' => $tracks_identity['_ut'],
5413
			)
5414
		);
5415
	}
5416
5417
	/**
5418
	 * If the db version is showing something other that what we've got now, bump it to current.