src/Jackiedo/DotenvEditor/DotenvFormatter.php
public function normaliseValue($value, $quote = '')
    {
        if (strlen($quote) == 0) {
            return trim($value);
        }

        $value = str_replace("\\$quote", $quote, $value);
        $value = str_replace('\\\\', '\\', $value);
        return $value;
    }
public function normaliseValue($value, $quote = '')
    {
        if (strlen($quote) == 0) {
            return trim($value);
        }

        $value = str_replace("\\$quote", $quote, $value);
        $value = str_replace('\\\\', '\\', $value);
        return $value;
    }
Normalising the value of setter to reading

@param  string $value
@param  string $quote

@return string