private function splitStringIntoParts(string $name, $value): array
    {
        if (strpos($name, '=') !== false) {
            [$name, $value] = array_map('trim', explode('=', $name, 2));
        }

        return [$name, $value];
    }