Code Duplication    Length = 9-9 lines in 2 locations

AdminModule/presenters/BasePresenter.php 1 location

@@ 579-587 (lines=9) @@
576
        ));
577
578
        $boxesAssoc = array();
579
        foreach ($pages as $page) {
580
            if ($page->getParent() != NULL) {
581
                $module = $this->createObject($page->getModuleName());
582
583
                foreach ($module->getBoxes() as $box) {
584
                    $boxesAssoc[$page->getId().'-'.$box['module'].'-'.$box['presenter'].'-'.$box['function']] = $page->getTitle().' - '.$this->translation[$box['name']];
585
                }
586
            }
587
        }
588
589
        $boxesAssoc = array(
590
            0 => $this->translation['Box is not linked.'],

AdminModule/presenters/SettingsPresenter.php 1 location

@@ 252-260 (lines=9) @@
249
        ));
250
251
        $boxesAssoc = array();
252
        foreach ($pages as $page) {
253
            if ($page->getParent() != NULL) {
254
                $module = $this->createObject($page->getModuleName());
255
256
                foreach ($module->getBoxes() as $box) {
257
                    $boxesAssoc[$page->getId().'-'.$box['module'].'-'.$box['presenter'].'-'.$box['function']] = $page->getTitle().' - '.$this->translation[$box['name']];
258
                }
259
            }
260
        }
261
262
        $boxesAssoc = array(
263
            0 => $this->translation['Box is not linked.'],