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
    final 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);
@@ 132-138 (lines=7) @@
129
     */
130
    final public function update($group)
131
    {
132
        if (is_string($group)) {
133
            $group = $this->groupFactory->createForPlayer($group);
134
        } else {
135
            if (is_array($group)) {
136
                $group = $this->groupFactory->createForPlayers($group);
137
            }
138
        }
139
140
        $ml = $this->guiHandler->getManialink($group, $this);
141
        if ($ml) {