Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

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