Code Duplication    Length = 11-11 lines in 2 locations

src/eXpansion/Framework/Core/Plugins/GuiHandler.php 2 locations

@@ 293-303 (lines=11) @@
290
    /**
291
     * @inheritdoc
292
     */
293
    public function onExpansionGroupAddUser(Group $group, $loginAdded)
294
    {
295
        $group = $group->getName();
296
297
        // User was added to group, need to display all manialinks of the group to this user
298
        if (isset($this->displayeds[$group])) {
299
            foreach ($this->displayeds[$group] as $mlId => $manialink) {
300
                $this->individualQueu[$loginAdded][$mlId] = $manialink;
301
            }
302
        }
303
    }
304
305
    /**
306
     * @inheritdoc
@@ 308-318 (lines=11) @@
305
    /**
306
     * @inheritdoc
307
     */
308
    public function onExpansionGroupRemoveUser(Group $group, $loginRemoved)
309
    {
310
        $group = $group->getName();
311
312
        // User was removed from group, need to hide all manialinks of the group to this user
313
        if (isset($this->displayeds[$group])) {
314
            foreach ($this->displayeds[$group] as $mlId => $manialink) {
315
                $this->hideIndividualQueu[$loginRemoved][$mlId] = $manialink;
316
            }
317
        }
318
    }
319
320
    /**
321
     * @inheritdoc