| 
                                
                                    @@ 172-177 (lines=6) @@
                                 | 
                            
                                                            
                                    | 169 | 
                                     | 
                                                }  | 
                                
                                                            
                                    | 170 | 
                                     | 
                                            }  | 
                                
                                                            
                                    | 171 | 
                                     | 
                                     | 
                                
                                                            
                                    | 172 | 
                                     | 
                                            if ($upsize && ($width < $targetWidth || $height < $targetHeight)) { | 
                                
                                                            
                                    | 173 | 
                                     | 
                                                if ($clone->resizeImage($targetWidth, $targetHeight, \Imagick::FILTER_CUBIC, 1.0, $bestfit) !== true) { | 
                                
                                                            
                                    | 174 | 
                                     | 
                                                    //cumbersome to test  | 
                                
                                                            
                                    | 175 | 
                                     | 
                                                    throw new \Exception('Imagick::resizeImage() did not return true');//@codeCoverageIgnore | 
                                
                                                            
                                    | 176 | 
                                     | 
                                                }  | 
                                
                                                            
                                    | 177 | 
                                     | 
                                            }  | 
                                
                                                            
                                    | 178 | 
                                     | 
                                     | 
                                
                                                            
                                    | 179 | 
                                     | 
                                            if ($clone->getImageHeight() === $boxHeight && $clone->getImageWidth() === $boxWidth) { | 
                                
                                                            
                                    | 180 | 
                                     | 
                                                return $clone;  | 
                                
                                                                                
                                 | 
                                
                                    @@ 375-380 (lines=6) @@
                                 | 
                            
                                                            
                                    | 372 | 
                                     | 
                                                    }  | 
                                
                                                            
                                    | 373 | 
                                     | 
                                                }  | 
                                
                                                            
                                    | 374 | 
                                     | 
                                     | 
                                
                                                            
                                    | 375 | 
                                     | 
                                                if ($upsize && ($width < $targetWidth || $height < $targetHeight)) { | 
                                
                                                            
                                    | 376 | 
                                     | 
                                                    if ($clone->resizeImage($targetWidth, $targetHeight, \Imagick::FILTER_CUBIC, 1.0, $bestfit) !== true) { | 
                                
                                                            
                                    | 377 | 
                                     | 
                                                        //cumbersome to test  | 
                                
                                                            
                                    | 378 | 
                                     | 
                                                        throw new \Exception('Imagick::resizeImage() did not return true');//@codeCoverageIgnore | 
                                
                                                            
                                    | 379 | 
                                     | 
                                                    }  | 
                                
                                                            
                                    | 380 | 
                                     | 
                                                }  | 
                                
                                                            
                                    | 381 | 
                                     | 
                                     | 
                                
                                                            
                                    | 382 | 
                                     | 
                                                if ($clone->getImageHeight() === $boxHeight && $clone->getImageWidth() === $boxWidth) { | 
                                
                                                            
                                    | 383 | 
                                     | 
                                                    $results[$boxSizeKey] = $clone;  |