Code Duplication    Length = 8-9 lines in 2 locations

model/Model.php 2 locations

@@ 250-258 (lines=9) @@
247
            $vocabs[] = $this->getVocabulary($vocid);
248
        }
249
250
        if (sizeof($vocids) == 1) { // search within vocabulary
251
            $voc = $vocabs[0];
252
            $sparql = $voc->getSparql();
253
            $arrayClass = $voc->getConfig()->getArrayClassURI();
254
        } else { // multi-vocabulary or global search
255
            $voc = null;
256
            $arrayClass = null;
257
            $sparql = $this->getDefaultSparql();
258
        }
259
        if ($type === null) {
260
            $type = array('skos:Concept');
261
        }
@@ 331-338 (lines=8) @@
328
            $vocabs[] = $hit['voc'];
329
            $uris[] = $hit['uri'];
330
        }
331
        if (sizeof($uniqueVocabs) == 1) {
332
            $voc = $vocabs[0];
333
            $sparql = $voc->getSparql();
334
            $arrayClass = $voc->getConfig()->getArrayClassURI();
335
        } else {
336
            $arrayClass = null;
337
            $sparql = $this->getDefaultSparql();
338
        }
339
        $ret = $sparql->queryConceptInfo($uris, $arrayClass, $vocabs, null, $search_lang);
340
341
        // For marking that the concept has been found through an alternative label, hidden