Code Duplication    Length = 9-9 lines in 2 locations

code/controllers/ShortListController.php 2 locations

@@ 116-124 (lines=9) @@
113
        preg_match('/remove|add/', $request->getURL(), $matches);
114
115
        switch ($matches[0]) {
116
            case 'add':
117
                $action = new AddToshortlistAction();
118
                $status = $action->performAction(
119
                    $shortlist = $this->getSessionShortList(),
120
                    $ID = $request->getVar('id'),
121
                    $type = $request->getVar('type'),
122
                    $session = $request->getVar('s')
123
                );
124
                break;
125
            case 'remove':
126
                $action = new RemoveFromshortlistAction();
127
                $status = $action->performAction(
@@ 125-133 (lines=9) @@
122
                    $session = $request->getVar('s')
123
                );
124
                break;
125
            case 'remove':
126
                $action = new RemoveFromshortlistAction();
127
                $status = $action->performAction(
128
                    $shortlist = $this->getSessionShortList(),
129
                    $ID = $request->getVar('id'),
130
                    $type = $request->getVar('type'),
131
                    $session = $request->getVar('s')
132
                );
133
                break;
134
        }
135
136
        if ($request->isAjax()) {