Dotenv\Loader::normaliseEnvironmentVariable PHP Method

normaliseEnvironmentVariable() protected method

Takes value as passed in by developer and: - ensures we're dealing with a separate name and value, breaking apart the name string if needed, - cleaning the value of quotes, - cleaning the name of quotes, - resolving nested variables.
protected normaliseEnvironmentVariable ( string $name, string $value ) : array
$name string
$value string
return array
    protected function normaliseEnvironmentVariable($name, $value)
    {
        list($name, $value) = $this->splitCompoundStringIntoParts($name, $value);
        list($name, $value) = $this->sanitiseVariableName($name, $value);
        list($name, $value) = $this->sanitiseVariableValue($name, $value);
        $value = $this->resolveNestedVariables($value);
        return array($name, $value);
    }