src/Util/Validator.php
protected function validateBetween($field, $value, $params)
    {
        if (!\is_numeric($value)) {
            return false;
        }
        if (!isset($params[0]) || !\is_array($params[0]) || \count($params[0]) !== 2) {
            return false;
        }

        list($min, $max) = $params[0];

        return $this->validateMin($field, $value, [$min]) && $this->validateMax($field, $value, [$max]);
    }
protected function validateBetween($field, $value, $params)
    {
        if (!\is_numeric($value)) {
            return false;
        }
        if (!isset($params[0]) || !\is_array($params[0]) || \count($params[0]) !== 2) {
            return false;
        }

        list($min, $max) = $params[0];

        return $this->validateMin($field, $value, [$min]) && $this->validateMax($field, $value, [$max]);
    }
protected function validateBetween ( $ field , $ value , $ params ) { if ( ! \ is_numeric ( $ value ) ) { return false ; } if ( ! isset ( $ params [ 0 ] ) || ! \ is_array ( $ params [ 0 ] ) || \ count ( $ params [ 0 ] ) !== 2 ) { return false ; } list ( $ min , $ max ) = $ params [ 0 ] ; return $ this -> validateMin ( $ field , $ value , [ $ min ] ) && $ this -> validateMax ( $ field , $ value , [ $ max ] ) ; }
Validate the size of a field is between min and max values

@param  string $field
@param  mixed  $value
@param  array  $params

@return bool
Validate the size of a field is between min and max values