Code Duplication    Length = 11-11 lines in 2 locations

lib/CachingReflector.php 2 locations

@@ 27-37 (lines=11) @@
24
        $this->cache = $cache ?: new ReflectionCacheArray;
25
    }
26
27
    public function getClass($class)
28
    {
29
        $cacheKey = self::CACHE_KEY_CLASSES.strtolower($class);
30
31
        if (!$reflectionClass = $this->cache->fetch($cacheKey)) {
32
            $reflectionClass = new ExtendedReflectionClass($class);
33
            $this->cache->store($cacheKey, $reflectionClass);
34
        }
35
36
        return $reflectionClass;
37
    }
38
39
    public function getCtor($class)
40
    {
@@ 176-186 (lines=11) @@
173
     *
174
     * @return array|bool
175
     */
176
    public function getImplemented($className)
177
    {
178
        $cacheKey = self::CACHE_KEY_IMPLEMENTED.strtolower($className);
179
180
        if (!$implemented = $this->cache->fetch($cacheKey)) {
181
            $implemented = parent::getImplemented($className);
182
            $this->cache->store($cacheKey, $implemented);
183
        }
184
185
        return $implemented;
186
    }
187
}
188