Code Duplication    Length = 13-13 lines in 3 locations

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

@@ 74-86 (lines=13) @@
71
    /**
72
     * @inheritdoc
73
     */
74
    protected function updateContent(ManialinkInterface $manialink)
75
    {
76
        /** @var Frame $contentFrame */
77
        $contentFrame = $manialink->getContentFrame();
78
        $contentFrame->removeAllChildren();
79
80
        $collection = $this->dataCollectionFactory->create($this->getRecordsData());
81
        $collection->setPageSize(20);
82
83
        /** @var GridBuilder $gridBuilder */
84
        $gridBuilder = $manialink->getData('grid');
85
        $contentFrame->addChild($gridBuilder->build($contentFrame->getWidth(), $contentFrame->getHeight()));
86
    }
87
88
    /**
89
     * @return array

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

@@ 58-70 (lines=13) @@
55
    /**
56
     * @inheritdoc
57
     */
58
    protected function updateContent(ManialinkInterface $manialink)
59
    {
60
        /** @var Frame $contentFrame */
61
        $contentFrame = $manialink->getContentFrame();
62
        $contentFrame->removeAllChildren();
63
64
        $collection = $this->dataCollectionFactory->create($this->getData());
65
        $collection->setPageSize(20);
66
67
        /** @var GridBuilder $gridBuilder */
68
        $gridBuilder = $manialink->getData('grid');
69
        $contentFrame->addChild($gridBuilder->build($contentFrame->getWidth(), $contentFrame->getHeight()));
70
    }
71
72
    /**
73
     * @param array $data

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

@@ 131-143 (lines=13) @@
128
    /**
129
     * @inheritdoc
130
     */
131
    protected function updateContent(ManialinkInterface $manialink)
132
    {
133
        /** @var Frame $contentFrame */
134
        $contentFrame = $manialink->getContentFrame();
135
        $contentFrame->removeAllChildren();
136
137
        $collection = $this->dataCollectionFactory->create($this->getChatCommands($manialink));
138
        $collection->setPageSize(20);
139
140
        /** @var GridBuilder $gridBuilder */
141
        $gridBuilder = $manialink->getData('grid');
142
        $contentFrame->addChild($gridBuilder->build($contentFrame->getWidth(), $contentFrame->getHeight()));
143
    }
144
145
    /**
146
     * Get chat commands to display the admin.