Code Duplication    Length = 12-12 lines in 2 locations

src/Padawan/Framework/Complete/Resolver/NodeTypeResolver.php 2 locations

@@ 218-229 (lines=12) @@
215
    /**
216
     * @param string $name
217
     */
218
    protected function getPropertyType($name, FQCN $type, Index $index)
219
    {
220
        $class = $index->findClassByFQCN($type);
221
        if (empty($class)) {
222
            return null;
223
        }
224
        $prop = $class->properties->get($name);
225
        if (empty($prop)) {
226
            return null;
227
        }
228
        return $prop->getType();
229
    }
230
    protected function getParentType(FQCN $type, Index $index)
231
    {
232
        $class = $index->findClassByFQCN($type);
@@ 230-241 (lines=12) @@
227
        }
228
        return $prop->getType();
229
    }
230
    protected function getParentType(FQCN $type, Index $index)
231
    {
232
        $class = $index->findClassByFQCN($type);
233
        if (empty($class)) {
234
            return null;
235
        }
236
        $parent = $class->getParent();
237
        if (empty($parent)) {
238
            return null;
239
        }
240
        return $parent->fqcn;
241
    }
242
243
    /** @property LoggerInterface */
244
    private $logger;