Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 591-595 (lines=5) @@
588
	 public function register_inline_script( $handle, $file, $plugin_file, $deps = false, $ver = false, $in_footer = false ) {
589
		$registered = wp_register_script( $handle, plugins_url( $file, $plugin_file ), $deps, $ver, $in_footer );
590
591
		if ( $registered ) {
592
			$file_full_path = dirname( $plugin_file ) . '/' . $file;
593
			wp_script_add_data( $handle, 'jetpack-inline', true );
594
			wp_script_add_data( $handle, 'jetpack-inline-file', $file_full_path );
595
		}
596
597
		return $registered;
598
	}
@@ 608-612 (lines=5) @@
605
	public function register_inline_style( $handle, $file, $plugin_file, $deps = array(), $ver = false, $media = 'all' ) {
606
		$registered = wp_register_style( $handle, plugins_url( $file, $plugin_file ), $deps, $ver, $media );
607
608
		if ( $registered ) {
609
			$file_full_path = dirname( $plugin_file ) . '/' . $file;
610
			wp_style_add_data( $handle, 'jetpack-inline', true );
611
			wp_style_add_data( $handle, 'jetpack-inline-file', $file_full_path );
612
		}
613
	}
614
}
615