From 229a1091686b65eada6e5f4f6c52af47f54625f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Fri, 28 Mar 2025 09:20:12 +0100 Subject: [PATCH] chore: cleanup --- deploy.php | 1 - src/BusProNet/XmlLoader/TravelLoader.php | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/deploy.php b/deploy.php index 14ef51e..70936a3 100644 --- a/deploy.php +++ b/deploy.php @@ -52,7 +52,6 @@ $rsyncOptions = [ 'temp/', 'tests/', 'uploads/', - 'xmlexport/', 'var/', ], 'exclude-file' => false, diff --git a/src/BusProNet/XmlLoader/TravelLoader.php b/src/BusProNet/XmlLoader/TravelLoader.php index d7ce749..d02b43d 100644 --- a/src/BusProNet/XmlLoader/TravelLoader.php +++ b/src/BusProNet/XmlLoader/TravelLoader.php @@ -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);