Josegonzalez\Upload\Validation\Traits\ImageValidationTrait::isAboveMinWidth PHP Метод

isAboveMinWidth() публичный статический Метод

Check that the file is above the minimum width requirement
public static isAboveMinWidth ( mixed $check, integer $width ) : boolean
$check mixed Value to check
$width integer Width of Image
Результат boolean Success
    public static function isAboveMinWidth($check, $width)
    {
        // Non-file uploads also mean the height is too big
        if (!isset($check['tmp_name']) || !strlen($check['tmp_name'])) {
            return false;
        }
        list($imgWidth) = getimagesize($check['tmp_name']);
        return $width > 0 && $imgWidth >= $width;
    }