chobie\Jira\Api\Client\CurlClient::getCurlValue PHP Method

getCurlValue() protected method

If necessary, replace curl file @ string with a CURLFile object (for PHP 5.5 and up)
protected getCurlValue ( string $file_string, string $name = null ) : CURLFile | string
$file_string string The string in @-format as it is used on PHP 5.4 and older.
$name string Name of attachment (optional).
return CURLFile | string
    protected function getCurlValue($file_string, $name = null)
    {
        if ($name === null) {
            $name = basename($file_string);
        }
        if (!function_exists('curl_file_create')) {
            return $file_string . ';filename=' . $name;
        }
        return curl_file_create(substr($file_string, 1), '', $name);
    }