Code Duplication    Length = 5-5 lines in 2 locations

lib/image/timber-image-operation-retina.php 1 location

@@ 67-71 (lines=5) @@
64
            } else {
65
                return true;
66
            }
67
        } else if ( isset( $image->error_data['error_loading_image'] ) ) {
68
            TimberHelper::error_log( 'Error loading ' . $image->error_data['error_loading_image'] );
69
        } else {
70
            TimberHelper::error_log( $image );
71
        }
72
        return false;
73
    }
74
}

lib/image/timber-image-operation-resize.php 1 location

@@ 195-199 (lines=5) @@
192
			} else {
193
				return true;
194
			}
195
		} else if ( isset( $image->error_data['error_loading_image'] ) ) {
196
			// @codeCoverageIgnoreStart
197
			TimberHelper::error_log( 'Error loading ' . $image->error_data['error_loading_image'] );
198
		} else {
199
			TimberHelper::error_log( $image );
200
			// @codeCoverageIgnoreEnd
201
		}
202
	}