Code Duplication    Length = 9-10 lines in 2 locations

eZ/Publish/Core/Persistence/Cache/ContentHandler.php 2 locations

@@ 67-75 (lines=9) @@
64
            ];
65
        };
66
67
        $this->getContentTags = function (Content $content) {
68
            $versionInfo = $content->versionInfo;
69
            $tags = [
70
                'content-fields-' . $versionInfo->contentInfo->id,
71
                'content-fields-type-' . $versionInfo->contentInfo->contentTypeId,
72
            ];
73
74
            return $this->getCacheTagsForVersion($versionInfo, $tags);
75
        };
76
    }
77
78
    /**
@@ 472-481 (lines=10) @@
469
        return $getContentInfoTagsFn($contentInfo, $tags);
470
    }
471
472
    private function getCacheTagsForContent(Content $content): array
473
    {
474
        $versionInfo = $content->versionInfo;
475
        $tags = [
476
            'content-fields-' . $versionInfo->contentInfo->id,
477
            'content-fields-type-' . $versionInfo->contentInfo->contentTypeId,
478
        ];
479
480
        return $this->getCacheTagsForVersion($versionInfo, $tags);
481
    }
482
}
483