Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 75-86 (lines=12) @@
72
    /**
73
     * {@inheritdoc}
74
     */
75
    public function load($id)
76
    {
77
        return $this->getCacheValue(
78
            $id,
79
            'ez-language-',
80
            function ($id) {
81
                return $this->persistenceHandler->contentLanguageHandler()->load($id);
82
            },
83
            $this->getTags,
84
            $this->getKeys
85
        );
86
    }
87
88
    /**
89
     * {@inheritdoc}
@@ 107-118 (lines=12) @@
104
    /**
105
     * {@inheritdoc}
106
     */
107
    public function loadByLanguageCode($languageCode)
108
    {
109
        return $this->getCacheValue(
110
            $languageCode,
111
            'ez-language-code-',
112
            function ($languageCode) {
113
                return $this->persistenceHandler->contentLanguageHandler()->loadByLanguageCode($languageCode);
114
            },
115
            $this->getTags,
116
            $this->getKeys
117
        );
118
    }
119
120
    /**
121
     * {@inheritdoc}