Wrapper.php
private function prepareAttributes($attributes = array())
    {
        if (!is_array($attributes)) {
            throw new InvalidArgumentException("[ImBundle] format attributes must be an array, recieved: " . var_export($attributes, true));
        }
        $result = "";
        foreach ($attributes as $key => $value) {
            if ($key === null || $key === "") {
                $result .= " " . $value;
            } else {
                $result .= " -" . $key;
                if ($value != "") {
                    $result .= " \"" . $value . "\"";
                }
            }
        }

        return $result;
    }
private function prepareAttributes($attributes = array())
    {
        if (!is_array($attributes)) {
            throw new InvalidArgumentException("[ImBundle] format attributes must be an array, recieved: " . var_export($attributes, true));
        }
        $result = "";
        foreach ($attributes as $key => $value) {
            if ($key === null || $key === "") {
                $result .= " " . $value;
            } else {
                $result .= " -" . $key;
                if ($value != "") {
                    $result .= " \"" . $value . "\"";
                }
            }
        }

        return $result;
    }
private function prepareAttributes ( $ attributes = array ( ) ) { if ( ! is_array ( $ attributes ) ) { throw new InvalidArgumentException ( "[ImBundle] format attributes must be an array, recieved: " . var_export ( $ attributes , true ) ) ; } $ result = "" ; foreach ( $ attributes as $ key => $ value ) { if ( $ key === null || $ key === "" ) { $ result .= " " . $ value ; } else { $ result .= " -" . $ key ; if ( $ value != "" ) { $ result .= " \"" . $ value . "\"" ; } } } return $ result ; }
Takes an array of attributes and formats it as CLI parameters

@param array $attributes

@return string
@throws InvalidArgumentException
Takes an array of attributes and formats it as CLI parameters