Improve determinism

phpcs-errors:226 phpunit-status:successful phpstan-errors:199
This commit is contained in:
2020-09-06 00:08:07 +02:00
committed by Stefan Rohde-Enslin
parent 688ba604a8
commit 3267b7aad9
6 changed files with 8 additions and 6 deletions

View File

@ -33,7 +33,9 @@ if (!file_exists($csv_datei)) {
if (is_dir(__DIR__ . "/xml")) rrmdir(__DIR__ . '/xml');
mkdir(__DIR__ . "/xml", 0755);
$fp = fopen ($csv_datei, 'r');
if (!($fp = fopen($csv_datei, 'r'))) {
throw new MDmainEntityNotExistentException("Failed opening file");
}
$y = 0;
while ($zeile = fgetcsv($fp, 100000, ';')) {