Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
27983a057b | |||
8323051ca7 | |||
f67d3c9003 |
@ -15,6 +15,11 @@
|
||||
}
|
||||
],
|
||||
"bin": [ "bin/dataset-info" ],
|
||||
"require": {
|
||||
"php": "^7.4|^8.0",
|
||||
"ext-simplexml": "*",
|
||||
"ext-json": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"phpstan/phpstan": "^1.8"
|
||||
|
@ -84,7 +84,7 @@ class DatasetManager
|
||||
if (file_exists($fn)) {
|
||||
$versions = include $fn;
|
||||
foreach ($versions['versions'] as $name=>$version) {
|
||||
self::$packageVersions[$name] = $version['version'];
|
||||
self::$packageVersions[$name] = array_key_exists('version',$version) ? $version['version'] : null;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -70,13 +70,13 @@ class CsvReader implements ReaderInterface
|
||||
$this->checkLoadedSlice();
|
||||
}
|
||||
|
||||
public function key(): mixed
|
||||
public function key()
|
||||
{
|
||||
//$this->checkLoadedSlice();
|
||||
return $this->counter;
|
||||
}
|
||||
|
||||
public function current(): mixed
|
||||
public function current()
|
||||
{
|
||||
//$this->checkLoadedSlice();
|
||||
return $this->data[$this->currentIndex];
|
||||
@ -102,4 +102,4 @@ class CsvReader implements ReaderInterface
|
||||
return ($this->currentFile < count($this->files) && ($this->currentIndex < count($this->data)));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -61,13 +61,13 @@ class JsonReader implements ReaderInterface
|
||||
$this->checkLoadedSlice();
|
||||
}
|
||||
|
||||
public function key(): mixed
|
||||
public function key()
|
||||
{
|
||||
//$this->checkLoadedSlice();
|
||||
return $this->counter;
|
||||
}
|
||||
|
||||
public function current(): mixed
|
||||
public function current()
|
||||
{
|
||||
//$this->checkLoadedSlice();
|
||||
return $this->data[$this->currentIndex];
|
||||
|
Loading…
x
Reference in New Issue
Block a user