Code Duplication    Length = 3-5 lines in 2 locations

Manager/MySql/L10nMySqlManager.php 2 locations

@@ 96-100 (lines=5) @@
93
        if (!empty($l10nResultList)) {
94
            $valueList = array();
95
            foreach ($l10nResultList as $l10nResult) {
96
                if (isset($l10nResult[self::LOCALE_KEY])) {
97
                    $valueList[$l10nResult[self::LOCALE_KEY]] = $l10nResult[self::VALUE_KEY];
98
                } else {
99
                    $valueList[] = $l10nResult[self::VALUE_KEY];
100
                }
101
            }
102
            $l10nResource = new L10nResource();
103
            $l10nResource->setIdLocalization($idLocalization);
@@ 148-150 (lines=3) @@
145
                if (!isset($l10nResourceTreeList[$l10nResult[self::ID_RESOURCE_KEY]])) {
146
                    $l10nResourceTreeList[$l10nResult[self::ID_RESOURCE_KEY]] = array();
147
                }
148
                if (!isset($l10nResourceTreeList[$l10nResult[self::ID_RESOURCE_KEY]][$l10nResult[self::ID_LOCALISATION_KEY]])) {
149
                    $l10nResourceTreeList[$l10nResult[self::ID_RESOURCE_KEY]][$l10nResult[self::ID_LOCALISATION_KEY]] = array();
150
                }
151
                $valueList = array();
152
                if (isset($l10nResult[self::LOCALE_KEY])) {
153
                    $l10nResourceTreeList