Skip to content

Commit

Permalink
Remove getFields() method
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Jan 29, 2017
1 parent b70e9f5 commit baecac9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/CsvReader.php
Expand Up @@ -252,14 +252,6 @@ public function seek($pointer)
$this->file->seek($pointer);
}

/**
* {@inheritdoc}
*/
public function getFields()
{
return $this->getColumnHeaders();
}

/**
* Get a row
*
Expand Down
2 changes: 1 addition & 1 deletion tests/CsvReaderTest.php
Expand Up @@ -16,7 +16,7 @@ public function testReadCsvFileWithColumnHeaders()
array(
'id', 'number', 'description'
),
$csvReader->getFields()
array_keys($csvReader->current())
);

foreach ($csvReader as $row) {
Expand Down

0 comments on commit baecac9

Please sign in to comment.