Code Duplication    Length = 3-3 lines in 2 locations

src/config/LdmlConfigHandler.class.php 2 locations

@@ 821-823 (lines=3) @@
818
                $aliasedItemLength = $this->getChildsOrAlias($itemLength);
819
                foreach ($aliasedItemLength as $itemFormat) {
820
                    if ($itemFormat->getName() == $name) {
821
                        if (isset($itemFormat->pattern)) {
822
                            $data[$dataIdxName][$itemLengthName]['pattern'] = $this->unescape($itemFormat->pattern->getValue(), true);
823
                        }
824
                        if (isset($itemFormat->displayName)) {
825
                            $data[$dataIdxName][$itemLengthName]['displayName'] = $this->unescape($itemFormat->displayName->getValue());
826
                        }
@@ 824-826 (lines=3) @@
821
                        if (isset($itemFormat->pattern)) {
822
                            $data[$dataIdxName][$itemLengthName]['pattern'] = $this->unescape($itemFormat->pattern->getValue(), true);
823
                        }
824
                        if (isset($itemFormat->displayName)) {
825
                            $data[$dataIdxName][$itemLengthName]['displayName'] = $this->unescape($itemFormat->displayName->getValue());
826
                        }
827
                    } else {
828
                        throw new AgaviException('unknown childtag "' . $itemFormat->getName() . '" in ' . $name . 'Length tag');
829
                    }