/** * @param int|float $resultValue * @param int|float $min [optional] * @param int|float $max [optional] * @param int $stackLevel [optional] * @return void * @throws DFE */ function df_result_between($resultValue, $min = null, $max = null, $stackLevel = 0) { if (df_enable_assertions()) { Q::assertResultIsBetween($resultValue, $min, $max, $stackLevel + 1); } }
/** * 2016-07-12 * @param string $url * @param string|E $message [optional] * @return void * @throws E|LE */ function df_assert_https($url, $message = null) { if (df_enable_assertions() && !df_check_https($url)) { df_error($message ? $message : df_sprintf('The URL «%s» is invalid, because the system expects an URL which starts with «https://».', $url)); } }