Code Duplication    Length = 4-4 lines in 2 locations

src/wp-includes/class-wp-image-editor-imagick.php 2 locations

@@ 686-689 (lines=4) @@
683
	 */
684
	protected function strip_meta() {
685
686
		if ( ! is_callable( array( $this->image, 'getImageProfiles' ) ) ) {
687
			/* translators: %s: ImageMagick method name */
688
			return new WP_Error( 'image_strip_meta_error', sprintf( __( '%s is required to strip image meta.' ), '<code>Imagick::getImageProfiles()</code>' ) );
689
		}
690
691
		if ( ! is_callable( array( $this->image, 'removeImageProfile' ) ) ) {
692
			/* translators: %s: ImageMagick method name */
@@ 691-694 (lines=4) @@
688
			return new WP_Error( 'image_strip_meta_error', sprintf( __( '%s is required to strip image meta.' ), '<code>Imagick::getImageProfiles()</code>' ) );
689
		}
690
691
		if ( ! is_callable( array( $this->image, 'removeImageProfile' ) ) ) {
692
			/* translators: %s: ImageMagick method name */
693
			return new WP_Error( 'image_strip_meta_error', sprintf( __( '%s is required to strip image meta.' ), '<code>Imagick::removeImageProfile()</code>' ) );
694
		}
695
696
		/*
697
		 * Protect a few profiles from being stripped for the following reasons: