Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5410-5421 (lines=12) @@
5407
	 * @param array $properties
5408
	 * @return array amended properties.
5409
	 */
5410
	public static function filter_register_request_body( $properties ) {
5411
		$tracking        = new Tracking();
5412
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5413
5414
		return array_merge(
5415
			$properties,
5416
			array(
5417
				'_ui' => $tracks_identity['_ui'],
5418
				'_ut' => $tracks_identity['_ut'],
5419
			)
5420
		);
5421
	}
5422
5423
	/**
5424
	 * Filters the token request body to include tracking properties.
@@ 5429-5440 (lines=12) @@
5426
	 * @param array $properties
5427
	 * @return array amended properties.
5428
	 */
5429
	public static function filter_token_request_body( $properties ) {
5430
		$tracking        = new Tracking();
5431
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5432
5433
		return array_merge(
5434
			$properties,
5435
			array(
5436
				'_ui' => $tracks_identity['_ui'],
5437
				'_ut' => $tracks_identity['_ut'],
5438
			)
5439
		);
5440
	}
5441
5442
	/**
5443
	 * If the db version is showing something other that what we've got now, bump it to current.