From 8614f79da36dd79057c127d21435e2eddef473df Mon Sep 17 00:00:00 2001 From: Sebastian Fichera Date: Thu, 11 Feb 2016 17:51:24 -0600 Subject: [PATCH] Minor fixes in order to be ok with naming conventions and code documentation... --- src/Spout/Reader/CSV/Reader.php | 2 +- src/Spout/Reader/CSV/RowIterator.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Spout/Reader/CSV/Reader.php b/src/Spout/Reader/CSV/Reader.php index 7fc5da8..af02def 100644 --- a/src/Spout/Reader/CSV/Reader.php +++ b/src/Spout/Reader/CSV/Reader.php @@ -75,7 +75,7 @@ class Reader extends AbstractReader * Sets the EOL for the CSV. * Needs to be called before opening the reader. * - * @param string $fieldEnclosure Character that enclose fields + * @param string $endOfLineCharacter used to properly get lines from the CSV file. * @return Reader */ public function setEndOfLineCharacter($endOfLineCharacter) diff --git a/src/Spout/Reader/CSV/RowIterator.php b/src/Spout/Reader/CSV/RowIterator.php index 0752d27..42bdba4 100644 --- a/src/Spout/Reader/CSV/RowIterator.php +++ b/src/Spout/Reader/CSV/RowIterator.php @@ -59,13 +59,13 @@ class RowIterator implements IteratorInterface * @param string $encoding Encoding of the CSV file to be read * @param \Box\Spout\Common\Helper\GlobalFunctionsHelper $globalFunctionsHelper */ - public function __construct($filePointer, $fieldDelimiter, $fieldEnclosure, $encoding, $EOLDelimiter, $globalFunctionsHelper) + public function __construct($filePointer, $fieldDelimiter, $fieldEnclosure, $encoding, $endOfLineDelimiter, $globalFunctionsHelper) { $this->filePointer = $filePointer; $this->fieldDelimiter = $fieldDelimiter; $this->fieldEnclosure = $fieldEnclosure; $this->encoding = $encoding; - $this->inputEOLDelimiter = $EOLDelimiter; + $this->inputEOLDelimiter = $endOfLineDelimiter; $this->globalFunctionsHelper = $globalFunctionsHelper; $this->encodingHelper = new EncodingHelper($globalFunctionsHelper);