Skip to content

Commit

Permalink
Revert changes to test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Dec 11, 2024
1 parent 1090dac commit 2468aaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions test/CsvFileIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __destruct()
fclose($this->file);
}

public function rewind(): void
public function rewind()
{
rewind($this->file);
//$this->current = fgetcsv($this->file, null, "\t");
Expand All @@ -32,22 +32,22 @@ public function rewind(): void
$this->key = 0;
}

public function valid(): bool
public function valid()
{
return !feof($this->file);
}

public function key(): mixed
public function key()
{
return $this->key;
}

public function current(): mixed
public function current()
{
return $this->current;
}

public function next(): void
public function next()
{
$line = fgets($this->file);
$current = explode(' ', $line);
Expand Down
4 changes: 2 additions & 2 deletions test/CsvFileVerboseIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

class CsvFileVerboseIterator extends CsvFileIterator
{
public function rewind(): void
public function rewind()
{
parent::rewind();
$this->_updateKey($this->current());
}

public function next(): void
public function next()
{
parent::next();
if ($this->valid()) {
Expand Down

0 comments on commit 2468aaa

Please sign in to comment.