Sulu\Bundle\MediaBundle\Media\ImageConverter\Cropper\Cropper::isNotSmallerThanFormat PHP Метод

isNotSmallerThanFormat() приватный Метод

Returns true iff the crop is greater or equal to the size of a given format.
private isNotSmallerThanFormat ( $width, $height, array $format ) : boolean
$width
$height
$format array
Результат boolean
    private function isNotSmallerThanFormat($width, $height, array $format)
    {
        if (isset($format['scale']['x']) && $width < $format['scale']['x']) {
            return false;
        }
        if (isset($format['scale']['y']) && $height < $format['scale']['y']) {
            return false;
        }
        return true;
    }