Code Duplication    Length = 15-16 lines in 2 locations

modules/widgets/milestone/milestone.php 1 location

@@ 76-91 (lines=16) @@
73
		}
74
	}
75
76
	public static function enqueue_template() {
77
		if ( Jetpack_AMP_Support::is_amp_request() ) {
78
			return;
79
		}
80
81
		wp_enqueue_script(
82
			'milestone',
83
			Jetpack::get_file_url_for_environment(
84
				'_inc/build/widgets/milestone/milestone.min.js',
85
				'modules/widgets/milestone/milestone.js'
86
			),
87
			array( 'jquery' ),
88
			'20160520',
89
			true
90
		);
91
	}
92
93
	public static function styles_template() {
94
		global $themecolors;

class.photon.php 1 location

@@ 1109-1123 (lines=15) @@
1106
	 * @action wp_enqueue_script
1107
	 * @return null
1108
	 */
1109
	public function action_wp_enqueue_scripts() {
1110
		if ( Jetpack_AMP_Support::is_amp_request() ) {
1111
			return;
1112
		}
1113
		wp_enqueue_script(
1114
			'jetpack-photon',
1115
			Jetpack::get_file_url_for_environment(
1116
				'_inc/build/photon/photon.min.js',
1117
				'modules/photon/photon.js'
1118
			),
1119
			array( 'jquery' ),
1120
			20130122,
1121
			true
1122
		);
1123
	}
1124
1125
	/**
1126
	 * Determine if image_downsize should utilize Photon via REST API.