Code Duplication    Length = 5-5 lines in 2 locations

lib/Jms/YamlConverter.php 1 location

@@ 485-489 (lines=5) @@
482
        if ($valueProp = $this->typeHasValue($type, $class, '')) {
483
            return $valueProp;
484
        }
485
        if (!$node->getType()->getName()) {
486
            $visited = $this->visitTypeAnonymous($node->getType(), $node->getName(), $class);
487
        } else {
488
            $visited = $this->visitType($node->getType());
489
        }
490
491
        return key($visited);
492
    }

lib/Php/PhpConverter.php 1 location

@@ 422-426 (lines=5) @@
419
            return $this->visitElementDef($node->getReferencedElement());
420
        }
421
422
        if (!$node->getType()->getName()) {
423
            return $this->visitTypeAnonymous($node->getType(), $node->getName(), $class);
424
        } else {
425
            return $this->visitType($node->getType(), $force);
426
        }
427
    }
428
}
429