Code Duplication    Length = 2-3 lines in 2 locations

modules/videopress/videopress.php 2 locations

@@ 174-176 (lines=3) @@
171
		);
172
173
		// Let Jetpack know about our local caps.
174
		foreach ( array( 'read_videos', 'edit_videos', 'delete_videos', 'upload_videos' ) as $cap )
175
			if ( $this->can( $cap ) )
176
				$params['caps'][] = $cap;
177
178
		$xml->query( $method, $params );
179
@@ 593-594 (lines=2) @@
590
		wp_enqueue_style( 'videopress-admin', plugins_url( 'videopress-admin.css', __FILE__ ), array(), $this->version );
591
592
		$caps = array();
593
		foreach( array( 'read_videos', 'edit_videos', 'delete_videos', 'upload_videos' ) as $cap )
594
			$caps[ $cap ] = $this->can( $cap );
595
596
		$l10n = array(
597
			'selectVideoFile' => __( 'Please select a video file to upload.', 'jetpack' ),