Code Duplication    Length = 3-3 lines in 2 locations

eZ/Publish/Core/Persistence/Cache/LocationHandler.php 1 location

@@ 287-289 (lines=3) @@
284
        // @todo use a different content tag here and reflect on in other handlers to be able to clear only content(?)
285
        $tags[] = 'content-'.$location->contentId;
286
        $tags[] = 'location-'.$location->id;
287
        foreach (explode('/', trim($location->pathString, '/')) as $pathId) {
288
            $tags[] = 'location-path-'.$pathId;
289
        }
290
291
        return $tags;
292
    }

eZ/Publish/Core/Persistence/Cache/ContentHandler.php 1 location

@@ 330-332 (lines=3) @@
327
            $tags[] = 'location-'.$contentInfo->mainLocationId;
328
329
            $location = $this->persistenceHandler->locationHandler()->load($contentInfo->mainLocationId);
330
            foreach (explode('/', trim($location->pathString, '/')) as $pathId) {
331
                $tags[] = 'location-path-'.$pathId;
332
            }
333
        }
334
335
        return $tags;