Code Duplication    Length = 5-5 lines in 2 locations

modules/perf/class.jetpack-perf-optimize-assets.php 2 locations

@@ 354-358 (lines=5) @@
351
	 public function register_inline_script( $handle, $file, $plugin_file, $deps = false, $ver = false, $in_footer = false ) {
352
		$registered = wp_register_script( $handle, plugins_url( $file, $plugin_file ), $deps, $ver, $in_footer );
353
354
		if ( $registered ) {
355
			$file_full_path = dirname( $plugin_file ) . '/' . $file;
356
			wp_script_add_data( $handle, 'jetpack-inline', true );
357
			wp_script_add_data( $handle, 'jetpack-inline-file', $file_full_path );
358
		}
359
360
		return $registered;
361
	}
@@ 371-375 (lines=5) @@
368
	public function register_inline_style( $handle, $file, $plugin_file, $deps = array(), $ver = false, $media = 'all' ) {
369
		$registered = wp_register_style( $handle, plugins_url( $file, $plugin_file ), $deps, $ver, $media );
370
371
		if ( $registered ) {
372
			$file_full_path = dirname( $plugin_file ) . '/' . $file;
373
			wp_style_add_data( $handle, 'jetpack-inline', true );
374
			wp_style_add_data( $handle, 'jetpack-inline-file', $file_full_path );
375
		}
376
	}
377
}
378