diff options
author | Hugo Hamon <hugo.hamon@sensiolabs.com> | 2016-08-01 09:42:58 +0200 |
---|---|---|
committer | Hugo Hamon <hugo.hamon@sensiolabs.com> | 2016-08-01 09:42:58 +0200 |
commit | 121a90d069ab7bdeafa5511738b11cd7ad654dd6 (patch) | |
tree | ce457e0ced3e23456ba5948ed097f52d6eefd808 /src | |
parent | 8a20c56144effa552a8cba5d8c626063222975b7 (diff) | |
download | csv-121a90d069ab7bdeafa5511738b11cd7ad654dd6.zip csv-121a90d069ab7bdeafa5511738b11cd7ad654dd6.tar.gz csv-121a90d069ab7bdeafa5511738b11cd7ad654dd6.tar.bz2 |
Change getInputBom() method name to getInputBOM() to be consistent everywhere in the API.
Diffstat (limited to 'src')
-rw-r--r-- | src/Modifier/QueryFilter.php | 6 | ||||
-rw-r--r-- | src/Reader.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Modifier/QueryFilter.php b/src/Modifier/QueryFilter.php index 2dad9bd..7f2db42 100644 --- a/src/Modifier/QueryFilter.php +++ b/src/Modifier/QueryFilter.php @@ -78,7 +78,7 @@ trait QueryFilter /** * @inheritdoc */ - abstract public function getInputBom(); + abstract public function getInputBOM(); /** * Set LimitIterator Offset @@ -202,7 +202,7 @@ trait QueryFilter */ protected function isBomStrippable() { - return !empty($this->getInputBom()) && $this->strip_bom; + return !empty($this->getInputBOM()) && $this->strip_bom; } /** @@ -214,7 +214,7 @@ trait QueryFilter */ protected function getStripBomIterator(Iterator $iterator) { - $bom_length = mb_strlen($this->getInputBom()); + $bom_length = mb_strlen($this->getInputBOM()); $enclosure = $this->getEnclosure(); $strip_bom = function ($row, $index) use ($bom_length, $enclosure) { if (0 != $index) { diff --git a/src/Reader.php b/src/Reader.php index 81db96a..756b425 100644 --- a/src/Reader.php +++ b/src/Reader.php @@ -342,7 +342,7 @@ class Reader extends AbstractCsv } if (0 === $offset && $this->isBomStrippable()) { - $line = mb_substr($line, mb_strlen($this->getInputBom())); + $line = mb_substr($line, mb_strlen($this->getInputBOM())); } return str_getcsv($line, $this->delimiter, $this->enclosure, $this->escape); |