Code Duplication    Length = 12-12 lines in 2 locations

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

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