src/BaseImage.php
protected static function isUpscaling(BoxInterface $sourceBox, BoxInterface $destinationBox)
    {
        return ($sourceBox->getWidth() <= $destinationBox->getWidth() && $sourceBox->getHeight() <= $destinationBox->getHeight()) || (!$destinationBox->getWidth() && !$destinationBox->getHeight());
    }
protected static function isUpscaling(BoxInterface $sourceBox, BoxInterface $destinationBox)
    {
        return ($sourceBox->getWidth() <= $destinationBox->getWidth() && $sourceBox->getHeight() <= $destinationBox->getHeight()) || (!$destinationBox->getWidth() && !$destinationBox->getHeight());
    }
protected static function isUpscaling ( BoxInterface $ sourceBox , BoxInterface $ destinationBox ) { return ( $ sourceBox -> getWidth ( ) <= $ destinationBox -> getWidth ( ) && $ sourceBox -> getHeight ( ) <= $ destinationBox -> getHeight ( ) ) || ( ! $ destinationBox -> getWidth ( ) && ! $ destinationBox -> getHeight ( ) ) ; }
Checks if upscaling is going to happen

@param BoxInterface $sourceBox
@param BoxInterface $destinationBox
@return bool
Checks if upscaling is going to happen