Improve determinism

phpcs-errors:226 phpunit-status:successful phpstan-errors:199
This commit is contained in:
Joshua Ramon Enslin 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

@ -1 +1 @@
Subproject commit 88e068d0dabf5d21a7b84f2a5622c7b1b21f2fa7
Subproject commit 7bc28d5d304b799984f2f8dcf9046f06540bac20

@ -1 +1 @@
Subproject commit f0b39322ecc1bdf8d94cfbabc1fc1c2f4b39a5d4
Subproject commit 54e8fe5bdb4803ec276cdbd5e6eaf9987ce116f2

@ -1 +1 @@
Subproject commit df7a17f8d94c6fb4bf89b8e550d6dade7f8acc6a
Subproject commit 230963a27e0009cf53e68372b6f5e9c52041d774

@ -1 +1 @@
Subproject commit 7d4a740f8f346f56183adbe6f916e69dc66f7844
Subproject commit 49ab75afe8605ff2703a3094561ad4cc01ab2952

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, ';')) {

View File

@ -16,7 +16,7 @@ if ($handle = opendir($fileDir)) {
$pathData = pathinfo($fileDir . $file);
$fileName = $pathData['filename'];
if ($file != '1.xml')
$zip->addFile(file_get_contents($fileDir . $file), $file, filectime($fileDir . $file));
$zip->addFile(MD_STD::file_get_contents($fileDir . $file), $file, filectime($fileDir . $file));
}
}
}