src/DunitCommand.php
private function getArrayOption(InputInterface $input, $key, $default)
    {
        $value = trim((string)$input->getOption($key));
        if (strlen($value)) {
            $current = $this->parseStringToArray($input->getOption($key));
            if (!empty($current)) {
                return $current;
            }
        }
        return is_string($default) ? $this->parseStringToArray($default) : $default;
    }
private function getArrayOption(InputInterface $input, $key, $default)
    {
        $value = trim((string)$input->getOption($key));
        if (strlen($value)) {
            $current = $this->parseStringToArray($input->getOption($key));
            if (!empty($current)) {
                return $current;
            }
        }
        return is_string($default) ? $this->parseStringToArray($default) : $default;
    }
private function getArrayOption ( InputInterface $ input , $ key , $ default ) { $ value = trim ( ( string ) $ input -> getOption ( $ key ) ) ; if ( strlen ( $ value ) ) { $ current = $ this -> parseStringToArray ( $ input -> getOption ( $ key ) ) ; if ( ! empty ( $ current ) ) { return $ current ; } } return is_string ( $ default ) ? $ this -> parseStringToArray ( $ default ) : $ default ; }
Retrieves the given key from the input options as an array and uses
the default value if not found or empty.
@param InputInterface $input The input for options.
@param string $key The input key for the option.
@param mixed $default current value for the images.
@return array Returns the list of images as an array.
Retrieves the given key from the input options as an array and uses the default value if not found or empty .