Code Duplication    Length = 13-13 lines in 3 locations

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/Bundle/LocalRecords/Plugins/Gui/RecordsWindowFactory.php 1 location

@@ 95-107 (lines=13) @@
92
    /**
93
     * @inheritdoc
94
     */
95
    protected function updateContent(ManialinkInterface $manialink)
96
    {
97
        /** @var Frame $contentFrame */
98
        $contentFrame = $manialink->getContentFrame();
99
        $contentFrame->removeAllChildren();
100
101
        $collection = $this->dataCollectionFactory->create($this->getRecordsData());
102
        $collection->setPageSize(20);
103
104
        /** @var GridBuilder $gridBuilder */
105
        $gridBuilder = $manialink->getData('grid');
106
        $contentFrame->addChild($gridBuilder->build($contentFrame->getWidth(), $contentFrame->getHeight()));
107
    }
108
109
    /**
110
     * @return array

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

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