Code Duplication    Length = 5-5 lines in 2 locations

lib/Jms/YamlConverter.php 2 locations

@@ 353-357 (lines=5) @@
350
351
        } elseif ($itemOfArray = $this->isArrayType($attribute->getType())) {
352
353
            if ($valueProp = $this->typeHasValue($itemOfArray, $class, 'xx')) {
354
                $property["type"] = "GoetasWebservices\Xsd\XsdToPhp\Jms\SimpleListOf<" . $valueProp . ">";
355
            } else {
356
                $property["type"] = "GoetasWebservices\Xsd\XsdToPhp\Jms\SimpleListOf<" . $this->findPHPName($itemOfArray) . ">";
357
            }
358
359
            $property["xml_list"]["inline"] = false;
360
            $property["xml_list"]["entry_name"] = $itemOfArray->getName();
@@ 440-444 (lines=5) @@
437
                if (!$t->getName()) {
438
                    $visitedType = $this->visitTypeAnonymous($itemOfArray, $element->getName(), $class);
439
440
                    if ($prop = $this->typeHasValue($itemOfArray, $class, 'xx')) {
441
                        $property["type"] = "array<" . $prop . ">";
442
                    } else {
443
                        $property["type"] = "array<" . key($visitedType) . ">";
444
                    }
445
                } else {
446
                    $this->visitType($itemOfArray);
447
                    $property["type"] = "array<" . $this->findPHPName($itemOfArray) . ">";