chore: cleanup

This commit is contained in:
Björn Fromme
2025-03-28 09:20:12 +01:00
parent c8966cf8b1
commit 229a109168
2 changed files with 2 additions and 7 deletions
+2 -6
View File
@@ -37,17 +37,13 @@ class TravelLoader extends AbstractLoader
$xmlFiles = $this
->xmlExport
->listContents('.')->filter(fn (StorageAttributes $attributes) => $attributes->isFile())
;
->listContents('.')
->filter(fn (StorageAttributes $attributes) => $attributes->isFile() && str_starts_with($attributes->path(), 'Ziel_'));
$mapping = [];
$hotels = $this->hotelDataLoader->loadAll();
foreach ($xmlFiles as $file) {
if (false === str_starts_with($file->path(), 'Ziel_')) {
continue;
}
$xml = $this->xmlExport->read($file->path());
$crawler = new Crawler($xml);