Code Duplication    Length = 7-7 lines in 2 locations

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

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