Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 441-445 (lines=5) @@
438
	 public function register_inline_script( $handle, $file, $plugin_file, $deps = false, $ver = false, $in_footer = false ) {
439
		$registered = wp_register_script( $handle, plugins_url( $file, $plugin_file ), $deps, $ver, $in_footer );
440
441
		if ( $registered ) {
442
			$file_full_path = dirname( $plugin_file ) . '/' . $file;
443
			wp_script_add_data( $handle, 'jetpack-inline', true );
444
			wp_script_add_data( $handle, 'jetpack-inline-file', $file_full_path );
445
		}
446
447
		return $registered;
448
	}
@@ 458-462 (lines=5) @@
455
	public function register_inline_style( $handle, $file, $plugin_file, $deps = array(), $ver = false, $media = 'all' ) {
456
		$registered = wp_register_style( $handle, plugins_url( $file, $plugin_file ), $deps, $ver, $media );
457
458
		if ( $registered ) {
459
			$file_full_path = dirname( $plugin_file ) . '/' . $file;
460
			wp_style_add_data( $handle, 'jetpack-inline', true );
461
			wp_style_add_data( $handle, 'jetpack-inline-file', $file_full_path );
462
		}
463
	}
464
}
465