Code Duplication    Length = 7-7 lines in 2 locations

eZ/Publish/Core/Search/Common/EventSubscriber/ContentEventSubscriber.php 2 locations

@@ 86-92 (lines=7) @@
83
        }
84
    }
85
86
    public function onHideContent(HideContentEvent $event)
87
    {
88
        $locations = $this->persistenceHandler->locationHandler()->loadLocationsByContent($event->getContentInfo()->id);
89
        foreach ($locations as $location) {
90
            $this->indexSubtree($location->id);
91
        }
92
    }
93
94
    public function onPublishVersion(PublishVersionEvent $event)
95
    {
@@ 106-112 (lines=7) @@
103
        }
104
    }
105
106
    public function onRevealContent(RevealContentEvent $event)
107
    {
108
        $locations = $this->persistenceHandler->locationHandler()->loadLocationsByContent($event->getContentInfo()->id);
109
        foreach ($locations as $location) {
110
            $this->indexSubtree($location->id);
111
        }
112
    }
113
114
    public function onUpdateContentMetadata(UpdateContentMetadataEvent $event)
115
    {