Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

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