Code Duplication    Length = 13-13 lines in 2 locations

src/eXpansion/Bundle/LocalRecords/Plugins/Gui/RecordsWindowFactory.php 1 location

@@ 113-125 (lines=13) @@
110
    /**
111
     * @inheritdoc
112
     */
113
    protected function updateContent(ManialinkInterface $manialink)
114
    {
115
        /** @var Frame $contentFrame */
116
        $contentFrame = $manialink->getContentFrame();
117
        $contentFrame->removeAllChildren();
118
119
        $collection = $this->dataCollectionFactory->create($this->getRecordsData());
120
        $collection->setPageSize(20);
121
122
        /** @var GridBuilder $gridBuilder */
123
        $gridBuilder = $manialink->getData('grid');
124
        $contentFrame->addChild($gridBuilder->build($contentFrame->getWidth(), $contentFrame->getHeight()));
125
    }
126
127
    /**
128
     * @return array

src/eXpansion/Framework/Core/Plugins/Gui/WindowHelpFactory.php 1 location

@@ 117-129 (lines=13) @@
114
    /**
115
     * @inheritdoc
116
     */
117
    protected function updateContent(ManialinkInterface $manialink)
118
    {
119
        /** @var Frame $contentFrame */
120
        $contentFrame = $manialink->getContentFrame();
121
        $contentFrame->removeAllChildren();
122
123
        $collection = $this->dataCollectionFactory->create($this->getChatCommands($manialink));
124
        $collection->setPageSize(20);
125
126
        /** @var GridBuilder $gridBuilder */
127
        $gridBuilder = $manialink->getData('grid');
128
        $contentFrame->addChild($gridBuilder->build($contentFrame->getWidth(), $contentFrame->getHeight()));
129
    }
130
131
    /**
132
     * Get chat commands to display the admin.