Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5260-5271 (lines=12) @@
5257
	 * @param Array $properties
5258
	 * @return Array amended properties.
5259
	 */
5260
	public static function filter_register_request_body( $properties ) {
5261
		$tracking        = new Tracking();
5262
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5263
5264
		return array_merge(
5265
			$properties,
5266
			array(
5267
				'_ui' => $tracks_identity['_ui'],
5268
				'_ut' => $tracks_identity['_ut'],
5269
			)
5270
		);
5271
	}
5272
5273
	/**
5274
	 * Filters the token request body to include tracking properties.
@@ 5279-5290 (lines=12) @@
5276
	 * @param Array $properties
5277
	 * @return Array amended properties.
5278
	 */
5279
	public static function filter_token_request_body( $properties ) {
5280
		$tracking        = new Tracking();
5281
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5282
5283
		return array_merge(
5284
			$properties,
5285
			array(
5286
				'_ui' => $tracks_identity['_ui'],
5287
				'_ut' => $tracks_identity['_ut'],
5288
			)
5289
		);
5290
	}
5291
5292
	/**
5293
	 * If the db version is showing something other that what we've got now, bump it to current.