Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

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