chore: cleanup
This commit is contained in:
@@ -52,7 +52,6 @@ $rsyncOptions = [
|
|||||||
'temp/',
|
'temp/',
|
||||||
'tests/',
|
'tests/',
|
||||||
'uploads/',
|
'uploads/',
|
||||||
'xmlexport/',
|
|
||||||
'var/',
|
'var/',
|
||||||
],
|
],
|
||||||
'exclude-file' => false,
|
'exclude-file' => false,
|
||||||
|
|||||||
@@ -37,17 +37,13 @@ class TravelLoader extends AbstractLoader
|
|||||||
|
|
||||||
$xmlFiles = $this
|
$xmlFiles = $this
|
||||||
->xmlExport
|
->xmlExport
|
||||||
->listContents('.')->filter(fn (StorageAttributes $attributes) => $attributes->isFile())
|
->listContents('.')
|
||||||
;
|
->filter(fn (StorageAttributes $attributes) => $attributes->isFile() && str_starts_with($attributes->path(), 'Ziel_'));
|
||||||
|
|
||||||
$mapping = [];
|
$mapping = [];
|
||||||
$hotels = $this->hotelDataLoader->loadAll();
|
$hotels = $this->hotelDataLoader->loadAll();
|
||||||
|
|
||||||
foreach ($xmlFiles as $file) {
|
foreach ($xmlFiles as $file) {
|
||||||
if (false === str_starts_with($file->path(), 'Ziel_')) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$xml = $this->xmlExport->read($file->path());
|
$xml = $this->xmlExport->read($file->path());
|
||||||
|
|
||||||
$crawler = new Crawler($xml);
|
$crawler = new Crawler($xml);
|
||||||
|
|||||||
Reference in New Issue
Block a user