src/DunitCommand.php
private function getBooleanOption(InputInterface $input, $key, $default)
    {
        $value = trim((string)$input->getOption($key));
        if (strlen($value)) {
            return filter_var($value, FILTER_VALIDATE_BOOLEAN);
        }
        return filter_var($default, FILTER_VALIDATE_BOOLEAN);
    }
private function getBooleanOption(InputInterface $input, $key, $default)
    {
        $value = trim((string)$input->getOption($key));
        if (strlen($value)) {
            return filter_var($value, FILTER_VALIDATE_BOOLEAN);
        }
        return filter_var($default, FILTER_VALIDATE_BOOLEAN);
    }
private function getBooleanOption ( InputInterface $ input , $ key , $ default ) { $ value = trim ( ( string ) $ input -> getOption ( $ key ) ) ; if ( strlen ( $ value ) ) { return filter_var ( $ value , FILTER_VALIDATE_BOOLEAN ) ; } return filter_var ( $ default , FILTER_VALIDATE_BOOLEAN ) ; }
Retrieves the given key from the input options as a boolean.
@param InputInterface $input The input interface.
@param string $key The option key.
@param mixed $default The default value.
@return boolean Returns the boolean value of the option or the default
if the option is not found.
Retrieves the given key from the input options as a boolean .