Code Duplication    Length = 7-7 lines in 2 locations

src/eXpansion/Framework/Core/Plugins/Gui/ManialinkFactory.php 2 locations

@@ 103-109 (lines=7) @@
100
     */
101
    public function create($group)
102
    {
103
        if (is_string($group)) {
104
            $group = $this->groupFactory->createForPlayer($group);
105
        } else {
106
            if (is_array($group)) {
107
                $group = $this->groupFactory->createForPlayers($group);
108
            }
109
        }
110
111
        if (!is_null($this->guiHandler->getManialink($group, $this))) {
112
            $this->update($group);
@@ 133-139 (lines=7) @@
130
     */
131
    public function update($group)
132
    {
133
        if (is_string($group)) {
134
            $group = $this->groupFactory->createForPlayer($group);
135
        } else {
136
            if (is_array($group)) {
137
                $group = $this->groupFactory->createForPlayers($group);
138
            }
139
        }
140
141
        $ml = $this->guiHandler->getManialink($group, $this);
142
        if ($ml) {