Code Duplication    Length = 12-12 lines in 2 locations

wp-admin/includes/class-wp-press-this.php 2 locations

@@ 511-522 (lines=12) @@
508
			switch ( $meta_name ) {
509
				case 'og:url':
510
				case 'og:video':
511
				case 'og:video:secure_url':
512
					$meta_value = $this->_limit_embed( $meta_value );
513
514
					if ( ! isset( $data['_embeds'] ) ) {
515
						$data['_embeds'] = array();
516
					}
517
518
					if ( ! empty( $meta_value ) && ! in_array( $meta_value, $data['_embeds'] ) ) {
519
						$data['_embeds'][] = $meta_value;
520
					}
521
522
					break;
523
				case 'og:image':
524
				case 'og:image:secure_url':
525
				case 'twitter:image0:src':
@@ 528-539 (lines=12) @@
525
				case 'twitter:image0:src':
526
				case 'twitter:image0':
527
				case 'twitter:image:src':
528
				case 'twitter:image':
529
					$meta_value = $this->_limit_img( $meta_value );
530
531
					if ( ! isset( $data['_images'] ) ) {
532
						$data['_images'] = array();
533
					}
534
535
					if ( ! empty( $meta_value ) && ! in_array( $meta_value, $data['_images'] ) ) {
536
						$data['_images'][] = $meta_value;
537
					}
538
539
					break;
540
			}
541
		}
542