protected function quoteFields(array $fields): array
    {
        if ('"' !== $this->sEnclosure) {
            return $fields;
        }

        return array_map(function ($element) {
            return \str_replace('"', '""', $element);
        }, $fields);
    }