Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5344-5355 (lines=12) @@
5341
	 * @param Array $properties
5342
	 * @return Array amended properties.
5343
	 */
5344
	public static function filter_register_request_body( $properties ) {
5345
		$tracking        = new Tracking();
5346
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5347
5348
		return array_merge(
5349
			$properties,
5350
			array(
5351
				'_ui' => $tracks_identity['_ui'],
5352
				'_ut' => $tracks_identity['_ut'],
5353
			)
5354
		);
5355
	}
5356
5357
	/**
5358
	 * Filters the token request body to include tracking properties.
@@ 5363-5374 (lines=12) @@
5360
	 * @param Array $properties
5361
	 * @return Array amended properties.
5362
	 */
5363
	public static function filter_token_request_body( $properties ) {
5364
		$tracking        = new Tracking();
5365
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5366
5367
		return array_merge(
5368
			$properties,
5369
			array(
5370
				'_ui' => $tracks_identity['_ui'],
5371
				'_ut' => $tracks_identity['_ut'],
5372
			)
5373
		);
5374
	}
5375
5376
	/**
5377
	 * If the db version is showing something other that what we've got now, bump it to current.