Code Duplication    Length = 5-5 lines in 2 locations

src/wp-includes/class-oembed.php 2 locations

@@ 114-118 (lines=5) @@
111
			'#https?://(www\.)?screencast\.com/.*#i'                   => array( 'https://api.screencast.com/external/oembed',                true  ),
112
		);
113
114
		if ( ! empty( self::$early_providers['add'] ) ) {
115
			foreach ( self::$early_providers['add'] as $format => $data ) {
116
				$providers[ $format ] = $data;
117
			}
118
		}
119
120
		if ( ! empty( self::$early_providers['remove'] ) ) {
121
			foreach ( self::$early_providers['remove'] as $format ) {
@@ 120-124 (lines=5) @@
117
			}
118
		}
119
120
		if ( ! empty( self::$early_providers['remove'] ) ) {
121
			foreach ( self::$early_providers['remove'] as $format ) {
122
				unset( $providers[ $format ] );
123
			}
124
		}
125
126
		self::$early_providers = array();
127