Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 71-82 (lines=12) @@
68
    /**
69
     * {@inheritdoc}
70
     */
71
    public function load($id)
72
    {
73
        return $this->getCacheValue(
74
            $id,
75
            'ez-language-',
76
            function ($id) {
77
                return $this->persistenceHandler->contentLanguageHandler()->load($id);
78
            },
79
            $this->getTags,
80
            $this->getKeys
81
        );
82
    }
83
84
    /**
85
     * {@inheritdoc}
@@ 103-114 (lines=12) @@
100
    /**
101
     * {@inheritdoc}
102
     */
103
    public function loadByLanguageCode($languageCode)
104
    {
105
        return $this->getCacheValue(
106
            $languageCode,
107
            'ez-language-code-',
108
            function ($languageCode) {
109
                return $this->persistenceHandler->contentLanguageHandler()->loadByLanguageCode($languageCode);
110
            },
111
            $this->getTags,
112
            $this->getKeys
113
        );
114
    }
115
116
    /**
117
     * {@inheritdoc}