diff options
author | ignace nyamagana butera <nyamsprod@gmail.com> | 2015-11-26 15:19:29 +0100 |
---|---|---|
committer | ignace nyamagana butera <nyamsprod@gmail.com> | 2015-11-26 15:19:29 +0100 |
commit | ff77ad7cc41f7395185e4d9f1a0f260690214d8e (patch) | |
tree | e88511763bacb3ce1d2b5c1d858c8a97e6104c0b /src | |
parent | 54e3ce2d8623e6b7f27a2918a494e3cb0990b00f (diff) | |
download | csv-ff77ad7cc41f7395185e4d9f1a0f260690214d8e.zip csv-ff77ad7cc41f7395185e4d9f1a0f260690214d8e.tar.gz csv-ff77ad7cc41f7395185e4d9f1a0f260690214d8e.tar.bz2 |
Remove useless method in QueryFilter
Diffstat (limited to 'src')
-rw-r--r-- | src/Modifier/QueryFilter.php | 10 | ||||
-rw-r--r-- | src/Reader.php | 6 |
2 files changed, 5 insertions, 11 deletions
diff --git a/src/Modifier/QueryFilter.php b/src/Modifier/QueryFilter.php index 39eecaf..176517b 100644 --- a/src/Modifier/QueryFilter.php +++ b/src/Modifier/QueryFilter.php @@ -71,16 +71,6 @@ trait QueryFilter protected $returnType = AbstractCsv::TYPE_ARRAY; /** - * Returns the return type for the next fetch call - * - * @return int - */ - public function getReturnType() - { - return $this->returnType; - } - - /** * Set the return type for the next fetch call * * @param int $type diff --git a/src/Reader.php b/src/Reader.php index 161ffa9..f71c43f 100644 --- a/src/Reader.php +++ b/src/Reader.php @@ -264,7 +264,11 @@ class Reader extends AbstractCsv return $offset_or_keys; } - $$offset_or_keys = $this->filterInteger($offset_or_keys, 0, 'the row index must be a positive integer, 0 or a non empty array'); + $offset_or_keys = $this->filterInteger( + $offset_or_keys, + 0, + 'the row index must be a positive integer, 0 or a non empty array' + ); $keys = $this->getRow($offset_or_keys); $this->assertValidAssocKeys($keys); $filterOutRow = function ($row, $rowIndex) use ($offset_or_keys) { |