Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

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