Skip to content

Commit

Permalink
remove var_dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzondervan committed Nov 28, 2024
1 parent 991a3da commit 6b29788
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Service/DirectoryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class DirectoryService
* @param ObjectService $objectService Object service for handling objects
* @param CatalogMapper $catalogMapper Mapper for catalog objects
* @param ListingMapper $listingMapper Mapper for listing objects
* @param BroadcastService $broadcastService Broadcast service for broadcasting
* @param BroadcastService $broadcastService Broadcast service for broadcasting
*/
public function __construct(
private readonly IURLGenerator $urlGenerator,
Expand Down Expand Up @@ -395,8 +395,6 @@ public function syncExternalDirectory(string $url): array
'catalog' // Index by catalog ID
);

var_dump($oldListings, $currentListings);

// Initialize arrays to store results
$addedListings = [];
$updatedListings = [];
Expand All @@ -415,8 +413,6 @@ public function syncExternalDirectory(string $url): array
// Check if we already have this listing by looking up its catalog ID in the oldListings array
$oldListing = $oldListings[$listing['id']] ?? null;

var_dump($listing['id'], $oldListing, $oldListings);

// If no existing listing found, prepare the new listing data
if ($oldListing === null) {
$listing['hash'] = hash('sha256', json_encode($listing));
Expand Down

0 comments on commit 6b29788

Please sign in to comment.