Code Duplication    Length = 5-5 lines in 2 locations

lib/Jms/YamlConverter.php 1 location

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

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