protected function validateConfig($key, array $configuration, $isFloat = false)
    {
        if (!$isFloat && !ctype_digit((string) $configuration[$key])) {
            throw new ValidationException(sprintf('"%s" is not a valid %s configuration', $configuration[$key], $key));
        }

        if ($isFloat && !is_numeric((string) $configuration[$key])) {
            throw new ValidationException(sprintf('"%s" is not a valid %s configuration', $configuration[$key], $key));
        }

        return true;
    }
protected function validateConfig($key, array $configuration, $isFloat = false)
    {
        if (!$isFloat && !ctype_digit((string) $configuration[$key])) {
            throw new ValidationException(sprintf('"%s" is not a valid %s configuration', $configuration[$key], $key));
        }

        if ($isFloat && !is_numeric((string) $configuration[$key])) {
            throw new ValidationException(sprintf('"%s" is not a valid %s configuration', $configuration[$key], $key));
        }

        return true;
    }
protected function validateConfig ( $ key , array $ configuration , $ isFloat = false ) { if ( ! $ isFloat && ! ctype_digit ( ( string ) $ configuration [ $ key ] ) ) { throw new ValidationException ( sprintf ( '"%s" is not a valid %s configuration' , $ configuration [ $ key ] , $ key ) ) ; } if ( $ isFloat && ! is_numeric ( ( string ) $ configuration [ $ key ] ) ) { throw new ValidationException ( sprintf ( '"%s" is not a valid %s configuration' , $ configuration [ $ key ] , $ key ) ) ; } return true ; }
Validate configuration value

@param string $key
@param array $configuration
@param bool $isFloat

@return bool

@throws ValidationException
Validate configuration value