From a2b9e63f608dc61a971f84ad56d4b895c8564eac Mon Sep 17 00:00:00 2001 From: Denny Lubitz Date: Mon, 30 Sep 2024 12:12:44 +0200 Subject: [PATCH] TASK: Cleanup and add code documentation --- .../Classes/AssetUsage/CatchUpHook/AssetUsageCatchUpHook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Neos.Neos/Classes/AssetUsage/CatchUpHook/AssetUsageCatchUpHook.php b/Neos.Neos/Classes/AssetUsage/CatchUpHook/AssetUsageCatchUpHook.php index be33ae889d6..4bc8ca01e38 100644 --- a/Neos.Neos/Classes/AssetUsage/CatchUpHook/AssetUsageCatchUpHook.php +++ b/Neos.Neos/Classes/AssetUsage/CatchUpHook/AssetUsageCatchUpHook.php @@ -50,7 +50,7 @@ public function onBeforeEvent(EventInterface $eventInstance, EventEnvelope $even if ( $eventInstance instanceof EmbedsWorkspaceName && $eventInstance instanceof EmbedsContentStreamId - // Safeguard for temporary content streams beeing created during partial publish -> We want to skip these events, because their workspace doesn't match current contentstream. + // Safeguard for temporary content streams created during partial publish -> We want to skip these events, because their workspace doesn't match current contentstream. && !$this->contentRepository->getWorkspaceFinder()->findOneByCurrentContentStreamId($eventInstance->getContentStreamId())?->workspaceName->equals($eventInstance->getWorkspaceName()) ) { return; @@ -68,7 +68,7 @@ public function onAfterEvent(EventInterface $eventInstance, EventEnvelope $event if ( $eventInstance instanceof EmbedsWorkspaceName && $eventInstance instanceof EmbedsContentStreamId - // Safeguard for temporary content streams beeing created during partial publish -> We want to skip these events, because their workspace doesn't match current contentstream. + // Safeguard for temporary content streams created during partial publish -> We want to skip these events, because their workspace doesn't match current contentstream. && !$this->contentRepository->getWorkspaceFinder()->findOneByCurrentContentStreamId($eventInstance->getContentStreamId())?->workspaceName->equals($eventInstance->getWorkspaceName()) ) { return;