Code Duplication    Length = 5-5 lines in 2 locations

lib/Php/PhpConverter.php 1 location

@@ 435-439 (lines=5) @@
432
            return $this->visitElementDef($node->getReferencedElement());
433
        }
434
435
        if (!$node->getType()->getName()) {
436
            return $this->visitTypeAnonymous($node->getType(), $node->getName(), $class);
437
        } else {
438
            return $this->visitType($node->getType(), $force);
439
        }
440
    }
441
	/**
442
	 * @param $constantValue

lib/Jms/YamlConverter.php 1 location

@@ 491-495 (lines=5) @@
488
        if ($valueProp = $this->typeHasValue($type, $class, '')) {
489
            return $valueProp;
490
        }
491
        if (!$node->getType()->getName()) {
492
            $visited = $this->visitTypeAnonymous($node->getType(), $node->getName(), $class);
493
        } else {
494
            $visited = $this->visitType($node->getType());
495
        }
496
497
        return key($visited);
498
    }