Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5245-5256 (lines=12) @@
5242
	 * @param Array $properties
5243
	 * @return Array amended properties.
5244
	 */
5245
	public static function filter_register_request_body( $properties ) {
5246
		$tracking        = new Tracking();
5247
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5248
5249
		return array_merge(
5250
			$properties,
5251
			array(
5252
				'_ui' => $tracks_identity['_ui'],
5253
				'_ut' => $tracks_identity['_ut'],
5254
			)
5255
		);
5256
	}
5257
5258
	/**
5259
	 * Filters the token request body to include tracking properties.
@@ 5264-5275 (lines=12) @@
5261
	 * @param Array $properties
5262
	 * @return Array amended properties.
5263
	 */
5264
	public static function filter_token_request_body( $properties ) {
5265
		$tracking        = new Tracking();
5266
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5267
5268
		return array_merge(
5269
			$properties,
5270
			array(
5271
				'_ui' => $tracks_identity['_ui'],
5272
				'_ut' => $tracks_identity['_ut'],
5273
			)
5274
		);
5275
	}
5276
5277
	/**
5278
	 * If the db version is showing something other that what we've got now, bump it to current.