Code Duplication    Length = 5-5 lines in 2 locations

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

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