Code Duplication    Length = 9-9 lines in 2 locations

src/Padawan/Domain/Project/Index.php 2 locations

@@ 49-57 (lines=9) @@
46
    /**
47
     * @return ClassData
48
     */
49
    public function findClassByFQCN(FQCN $fqcn) {
50
        $str = $fqcn->toString();
51
        if (array_key_exists($str, $this->classes)) {
52
            return $this->classes[$str];
53
        }
54
        if ($this->hasCoreIndex()) {
55
            return self::$coreIndex->findClassByFQCN($fqcn);
56
        }
57
    }
58
59
    /**
60
     * @return InterfaceData
@@ 62-70 (lines=9) @@
59
    /**
60
     * @return InterfaceData
61
     */
62
    public function findInterfaceByFQCN(FQCN $fqcn) {
63
        $str = $fqcn->toString();
64
        if (array_key_exists($str, $this->interfaces)) {
65
            return $this->interfaces[$str];
66
        }
67
        if ($this->hasCoreIndex()) {
68
            return self::$coreIndex->findInterfaceByFQCN($fqcn);
69
        }
70
    }
71
72
    /**
73
     * @return FunctionData