chore: cleanup
This commit is contained in:
@@ -52,7 +52,6 @@ $rsyncOptions = [
|
||||
'temp/',
|
||||
'tests/',
|
||||
'uploads/',
|
||||
'xmlexport/',
|
||||
'var/',
|
||||
],
|
||||
'exclude-file' => false,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user