Dotenv\Loader::splitCompoundStringIntoParts PHP Method

splitCompoundStringIntoParts() protected method

If the $name contains an = sign, then we split it into 2 parts, a name & value disregarding the $value passed in.
protected splitCompoundStringIntoParts ( string $name, string $value ) : array
$name string
$value string
return array
    protected function splitCompoundStringIntoParts($name, $value)
    {
        if (strpos($name, '=') !== false) {
            list($name, $value) = array_map('trim', explode('=', $name, 2));
        }
        return array($name, $value);
    }