diff --git a/src/AbstractCsv.php b/src/AbstractCsv.php index e434e0b6..d4488879 100644 --- a/src/AbstractCsv.php +++ b/src/AbstractCsv.php @@ -4,9 +4,9 @@ * * @author Ignace Nyamagana Butera * @copyright 2014 Ignace Nyamagana Butera -* @link https://github.com/nyamsprod/League.csv +* @link https://github.com/thephpleague/csv/ * @license http://opensource.org/licenses/MIT -* @version 5.3.0 +* @version 5.3.1 * @package League.csv * * MIT LICENSE @@ -107,6 +107,7 @@ abstract class AbstractCsv implements JsonSerializable, IteratorAggregate */ public function __construct($path, $open_mode = 'r+') { + ini_set("auto_detect_line_endings", true); $this->setIterator($path, $open_mode); } @@ -351,7 +352,6 @@ protected function setIterator($path, $open_mode) */ public function getIterator() { - ini_set("auto_detect_line_endings", true); $this->csv->setCsvControl($this->delimiter, $this->enclosure, $this->escape); $this->csv->setFlags($this->flags); @@ -388,9 +388,10 @@ public function getEncoding() } /** - * Instantiate a {@link Writer} class from the current {@link Reader} + * Instantiate a AbstractCsv extended class * - * @param string $open_mode the file open mode flag + * @param string $class_name the Class to load {@link Writer} or {@link Reader} + * @param string $open_mode the file open mode flag * * @return \League\Csv\AbstractCSv */ diff --git a/src/Iterator/IteratorFilter.php b/src/Iterator/IteratorFilter.php index 02cfb159..501f9fb8 100644 --- a/src/Iterator/IteratorFilter.php +++ b/src/Iterator/IteratorFilter.php @@ -4,9 +4,9 @@ * * @author Ignace Nyamagana Butera * @copyright 2014 Ignace Nyamagana Butera -* @link https://github.com/nyamsprod/League.csv +* @link https://github.com/thephpleague/csv/ * @license http://opensource.org/licenses/MIT -* @version 5.3.0 +* @version 5.3.1 * @package League.csv * * MIT LICENSE diff --git a/src/Iterator/IteratorInterval.php b/src/Iterator/IteratorInterval.php index 65d3f368..5011c9a0 100644 --- a/src/Iterator/IteratorInterval.php +++ b/src/Iterator/IteratorInterval.php @@ -4,9 +4,9 @@ * * @author Ignace Nyamagana Butera * @copyright 2014 Ignace Nyamagana Butera -* @link https://github.com/nyamsprod/League.csv +* @link https://github.com/thephpleague/csv/ * @license http://opensource.org/licenses/MIT -* @version 5.3.0 +* @version 5.3.1 * @package League.csv * * MIT LICENSE diff --git a/src/Iterator/IteratorQuery.php b/src/Iterator/IteratorQuery.php index 1812d88d..c630d73c 100644 --- a/src/Iterator/IteratorQuery.php +++ b/src/Iterator/IteratorQuery.php @@ -4,9 +4,9 @@ * * @author Ignace Nyamagana Butera * @copyright 2014 Ignace Nyamagana Butera -* @link https://github.com/nyamsprod/League.csv +* @link https://github.com/thephpleague/csv/ * @license http://opensource.org/licenses/MIT -* @version 5.3.0 +* @version 5.3.1 * @package League.csv * * MIT LICENSE diff --git a/src/Iterator/IteratorSortBy.php b/src/Iterator/IteratorSortBy.php index 4b318425..0d791851 100644 --- a/src/Iterator/IteratorSortBy.php +++ b/src/Iterator/IteratorSortBy.php @@ -4,9 +4,9 @@ * * @author Ignace Nyamagana Butera * @copyright 2014 Ignace Nyamagana Butera -* @link https://github.com/nyamsprod/League.csv +* @link https://github.com/thephpleague/csv/ * @license http://opensource.org/licenses/MIT -* @version 5.3.0 +* @version 5.3.1 * @package League.csv * * MIT LICENSE diff --git a/src/Iterator/MapIterator.php b/src/Iterator/MapIterator.php index a5333bbd..99dec7f6 100644 --- a/src/Iterator/MapIterator.php +++ b/src/Iterator/MapIterator.php @@ -4,9 +4,9 @@ * * @author Ignace Nyamagana Butera * @copyright 2014 Ignace Nyamagana Butera -* @link https://github.com/nyamsprod/League.csv +* @link https://github.com/thephpleague/csv/ * @license http://opensource.org/licenses/MIT -* @version 5.3.0 +* @version 5.3.1 * @package League.csv * * MIT LICENSE diff --git a/src/Reader.php b/src/Reader.php index 8c64a410..2bad8735 100644 --- a/src/Reader.php +++ b/src/Reader.php @@ -4,9 +4,9 @@ * * @author Ignace Nyamagana Butera * @copyright 2014 Ignace Nyamagana Butera -* @link https://github.com/nyamsprod/League.csv +* @link https://github.com/thephpleague/csv/ * @license http://opensource.org/licenses/MIT -* @version 5.3.0 +* @version 5.3.1 * @package League.csv * * MIT LICENSE diff --git a/src/Writer.php b/src/Writer.php index 7c5157f7..4db0fd1a 100644 --- a/src/Writer.php +++ b/src/Writer.php @@ -4,9 +4,9 @@ * * @author Ignace Nyamagana Butera * @copyright 2014 Ignace Nyamagana Butera -* @link https://github.com/nyamsprod/League.csv +* @link https://github.com/thephpleague/csv/ * @license http://opensource.org/licenses/MIT -* @version 5.3.0 +* @version 5.3.1 * @package League.csv * * MIT LICENSE