Code Duplication    Length = 8-16 lines in 2 locations

modules/tiled-gallery/tiled-gallery.php 1 location

@@ 89-96 (lines=8) @@
86
		return $attachments;
87
	}
88
89
	public static function default_scripts_and_styles() {
90
		wp_enqueue_script( 'tiled-gallery', plugins_url( 'tiled-gallery/tiled-gallery.js', __FILE__ ), array( 'jquery' ) );
91
		if( is_rtl() ) {
92
			wp_enqueue_style( 'tiled-gallery', plugins_url( 'tiled-gallery/rtl/tiled-gallery-rtl.css', __FILE__ ), array(), '2012-09-21' );
93
		} else {
94
			wp_enqueue_style( 'tiled-gallery', plugins_url( 'tiled-gallery/tiled-gallery.css', __FILE__ ), array(), '2012-09-21' );
95
		}
96
	}
97
98
	public function gallery_shortcode( $val, $atts ) {
99
		if ( ! empty( $val ) ) // something else is overriding post_gallery, like a custom VIP shortcode

modules/publicize/ui.php 1 location

@@ 68-83 (lines=16) @@
65
	* styling for the sharing screen and popups
66
	* JS for the options and switching
67
	*/
68
	function load_assets() {
69
		wp_enqueue_script(
70
			'publicize',
71
			plugins_url( 'assets/publicize.js', __FILE__ ),
72
			array( 'jquery', 'thickbox' ),
73
			'20121019'
74
		);
75
		if( is_rtl() ) {
76
			wp_enqueue_style( 'publicize', plugins_url( 'assets/rtl/publicize-rtl.css', __FILE__ ), array(), '20120925' );
77
		} else {
78
			wp_enqueue_style( 'publicize', plugins_url( 'assets/publicize.css', __FILE__ ), array(), '20120925' );
79
		}
80
81
82
		add_thickbox();
83
	}
84
85
	public static function connected_notice( $service_name ) { ?>
86
		<div class='updated'>