Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5373-5384 (lines=12) @@
5370
	 * @param array $properties
5371
	 * @return array amended properties.
5372
	 */
5373
	public static function filter_register_request_body( $properties ) {
5374
		$tracking        = new Tracking();
5375
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5376
5377
		return array_merge(
5378
			$properties,
5379
			array(
5380
				'_ui' => $tracks_identity['_ui'],
5381
				'_ut' => $tracks_identity['_ut'],
5382
			)
5383
		);
5384
	}
5385
5386
	/**
5387
	 * Filters the token request body to include tracking properties.
@@ 5392-5403 (lines=12) @@
5389
	 * @param array $properties
5390
	 * @return array amended properties.
5391
	 */
5392
	public static function filter_token_request_body( $properties ) {
5393
		$tracking        = new Tracking();
5394
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5395
5396
		return array_merge(
5397
			$properties,
5398
			array(
5399
				'_ui' => $tracks_identity['_ui'],
5400
				'_ut' => $tracks_identity['_ut'],
5401
			)
5402
		);
5403
	}
5404
5405
	/**
5406
	 * If the db version is showing something other that what we've got now, bump it to current.