Code Duplication    Length = 5-5 lines in 2 locations

application/modules/translator/admin.php 1 location

@@ 207-211 (lines=5) @@
204
                $resultReceiver = $this->poFileManager->toArray($modules_templatesReceiver, $typeReceiver, $langReceiver);
205
                $receiverPoArray = $resultReceiver['po_array'];
206
207
                foreach ($exchangerPoArray as $origin => $value) {
208
                    if ($receiverPoArray[$origin]) {
209
                        $receiverPoArray[$origin]['translation'] = $value['translation'];
210
                    }
211
                }
212
213
                $this->setSession($modules_templatesReceiver, $typeReceiver, $langReceiver);
214

application/modules/translator/classes/PoFileManager.php 1 location

@@ 112-116 (lines=5) @@
109
            $resultReceiver = $this->toArray($modules_templatesReceiver, $typeReceiver, $langReceiver);
110
            $receiverPoArray = $resultReceiver['po_array'];
111
112
            foreach ($exchangerPoArray as $origin => $value) {
113
                if ($receiverPoArray[$origin]) {
114
                    $receiverPoArray[$origin]['translation'] = $value['translation'];
115
                }
116
            }
117
118
            $receiverPoArray['po_array'] = $receiverPoArray;
119
            $receiverPoArray['settings'] = $this->prepareUpdateSettings($resultExchanger['settings']);