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

@@ 174-178 (lines=5) @@
171
			} else {
172
				return true;
173
			}
174
		} else if ( isset( $image->error_data['error_loading_image'] ) ) {
175
			// @codeCoverageIgnoreStart
176
			TimberHelper::error_log( 'Error loading ' . $image->error_data['error_loading_image'] );
177
		} else {
178
			TimberHelper::error_log( $image );
179
			// @codeCoverageIgnoreEnd
180
		}
181
	}