Code Duplication    Length = 4-4 lines in 2 locations

model/ConceptSearchParameters.php 2 locations

@@ 46-49 (lines=4) @@
43
44
    public function getVocabIds()
45
    {
46
        if ($this->rest) {
47
            $vocabs = $this->request->getQueryParam('vocab');
48
            return ($vocabs !== null && $vocabs !== '') ? explode(' ', $vocabs) : null;
49
        }
50
        if ($this->request->getQueryParam('vocabs')) {
51
            $vocabs = $this->request->getQueryParam('vocabs'); 
52
            return ($vocabs !== null && $vocabs !== '') ? explode(' ', $vocabs) : null;
@@ 50-53 (lines=4) @@
47
            $vocabs = $this->request->getQueryParam('vocab');
48
            return ($vocabs !== null && $vocabs !== '') ? explode(' ', $vocabs) : null;
49
        }
50
        if ($this->request->getQueryParam('vocabs')) {
51
            $vocabs = $this->request->getQueryParam('vocabs'); 
52
            return ($vocabs !== null && $vocabs !== '') ? explode(' ', $vocabs) : null;
53
        }
54
        $vocabs = $this->getVocabs();
55
        if ($vocabs[0]) {
56
            return array($vocabs[0]->getId());