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