classes/phing/types/Commandline.php
private function toString($lines = null): string
    {
        // empty path return empty string
        if ($lines === null || count($lines) === 0) {
            return '';
        }

        return implode(
            ' ',
            array_map(
                function ($arg) {
                    return self::quoteArgument($arg, $this->escape);
                },
                $lines
            )
        );
    }
private function toString($lines = null): string
    {
        // empty path return empty string
        if ($lines === null || count($lines) === 0) {
            return '';
        }

        return implode(
            ' ',
            array_map(
                function ($arg) {
                    return self::quoteArgument($arg, $this->escape);
                },
                $lines
            )
        );
    }
private function toString ( $ lines = null ) : string { // empty path return empty string if ( $ lines === null || count ( $ lines ) === 0 ) { return '' ; } return implode ( ' ' , array_map ( function ( $ arg ) { return self :: quoteArgument ( $ arg , $ this -> escape ) ; } , $ lines ) ) ; }
Quotes the parts of the given array in way that makes them
usable as command line arguments.

@param $lines

@return string

@throws BuildException
Quotes the parts of the given array in way that makes them usable as command line arguments .