2 Commits
0.1.3 ... 0.1.4

3 changed files with 10 additions and 5 deletions

View File

@ -15,6 +15,11 @@
} }
], ],
"bin": [ "bin/dataset-info" ], "bin": [ "bin/dataset-info" ],
"require": {
"php": "^7.4|^8.0",
"ext-simplexml": "*",
"ext-json": "*"
},
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5", "phpunit/phpunit": "^9.5",
"phpstan/phpstan": "^1.8" "phpstan/phpstan": "^1.8"

View File

@ -70,13 +70,13 @@ class CsvReader implements ReaderInterface
$this->checkLoadedSlice(); $this->checkLoadedSlice();
} }
public function key(): mixed public function key()
{ {
//$this->checkLoadedSlice(); //$this->checkLoadedSlice();
return $this->counter; return $this->counter;
} }
public function current(): mixed public function current()
{ {
//$this->checkLoadedSlice(); //$this->checkLoadedSlice();
return $this->data[$this->currentIndex]; return $this->data[$this->currentIndex];
@ -102,4 +102,4 @@ class CsvReader implements ReaderInterface
return ($this->currentFile < count($this->files) && ($this->currentIndex < count($this->data))); return ($this->currentFile < count($this->files) && ($this->currentIndex < count($this->data)));
} }
} }

View File

@ -61,13 +61,13 @@ class JsonReader implements ReaderInterface
$this->checkLoadedSlice(); $this->checkLoadedSlice();
} }
public function key(): mixed public function key()
{ {
//$this->checkLoadedSlice(); //$this->checkLoadedSlice();
return $this->counter; return $this->counter;
} }
public function current(): mixed public function current()
{ {
//$this->checkLoadedSlice(); //$this->checkLoadedSlice();
return $this->data[$this->currentIndex]; return $this->data[$this->currentIndex];