Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 106-112 (lines=7) @@
103
     */
104
    public function create($group)
105
    {
106
        if (is_string($group)) {
107
            $group = $this->groupFactory->createForPlayer($group);
108
        } else {
109
            if (is_array($group)) {
110
                $group = $this->groupFactory->createForPlayers($group);
111
            }
112
        }
113
114
        if (!is_null($this->guiHandler->getManialink($group, $this))) {
115
            $this->update($group);
@@ 137-143 (lines=7) @@
134
     */
135
    public function update($group)
136
    {
137
        if (is_string($group)) {
138
            $group = $this->groupFactory->createForPlayer($group);
139
        } else {
140
            if (is_array($group)) {
141
                $group = $this->groupFactory->createForPlayers($group);
142
            }
143
        }
144
145
        $ml = $this->guiHandler->getManialink($group, $this);
146
        if ($ml) {