Code Duplication    Length = 11-11 lines in 2 locations

lib/Doctrine/ORM/Cache/DefaultCache.php 2 locations

@@ 171-181 (lines=11) @@
168
    /**
169
     * {@inheritdoc}
170
     */
171
    public function containsCollection($className, $association, $ownerIdentifier)
172
    {
173
        $metadata  = $this->em->getClassMetadata($className);
174
        $persister = $this->uow->getCollectionPersister($metadata->getAssociationMapping($association));
175
176
        if ( ! ($persister instanceof CachedPersister)) {
177
            return false;
178
        }
179
180
        return $persister->getCacheRegion()->contains($this->buildCollectionCacheKey($metadata, $association, $ownerIdentifier));
181
    }
182
183
    /**
184
     * {@inheritdoc}
@@ 186-196 (lines=11) @@
183
    /**
184
     * {@inheritdoc}
185
     */
186
    public function evictCollection($className, $association, $ownerIdentifier)
187
    {
188
        $metadata  = $this->em->getClassMetadata($className);
189
        $persister = $this->uow->getCollectionPersister($metadata->getAssociationMapping($association));
190
191
        if ( ! ($persister instanceof CachedPersister)) {
192
            return;
193
        }
194
195
        $persister->getCacheRegion()->evict($this->buildCollectionCacheKey($metadata, $association, $ownerIdentifier));
196
    }
197
198
    /**
199
     * {@inheritdoc}