Code Duplication    Length = 10-12 lines in 2 locations

src/Utils/EntityMapCache.php 2 locations

@@ 92-103 (lines=12) @@
89
     *
90
     * @return array|null
91
     */
92
    public function loadEntityMap($objectManagerName)
93
    {
94
        $key = $this->getCacheKeyForObjectManagerName($objectManagerName);
95
96
        $cache = $this->getCache();
97
98
        if (false === $cache->contains($key)) {
99
            return false;
100
        }
101
102
        return $cache->fetch($key);
103
    }
104
105
    /**
106
     * Удаляет карту сущностей
@@ 112-121 (lines=10) @@
109
     *
110
     * @return void
111
     */
112
    public function deleteEntityMap($objectManagerName)
113
    {
114
        $key = $this->getCacheKeyForObjectManagerName($objectManagerName);
115
116
        $cache = $this->getCache();
117
118
        if (true === $cache->contains($key)) {
119
            $cache->delete($key);
120
        }
121
    }
122
123
    /**
124
     * Проверяет есть ли в кеше карта сущностей для заданного ObjectManager