protected function closeReader() { if ($this->filePointer) { $this->globalFunctionsHelper->fclose($this->filePointer); } ini_set('auto_detect_line_endings', $this->originalAutoDetectLineEndings); }