Command/CliCommand.php
protected function prepareData(InputInterface $input)
    {
        $return = [];

        foreach ($this->validators as $validator) {
            $result = $validator->validate($input);

            if (isset($result) && is_array($result)) {
                $return = NestedArray::mergeDeep($return, $result);
            } elseif (isset($result)) {
                $return[] = $result;
            }
        }

        return $return;
    }
protected function prepareData(InputInterface $input)
    {
        $return = [];

        foreach ($this->validators as $validator) {
            $result = $validator->validate($input);

            if (isset($result) && is_array($result)) {
                $return = NestedArray::mergeDeep($return, $result);
            } elseif (isset($result)) {
                $return[] = $result;
            }
        }

        return $return;
    }
Prepare data before execution.

@param InputInterface  $input
Input.

@return array
Prepared data.