Code Duplication    Length = 7-7 lines in 2 locations

model/Vocabulary.php 2 locations

@@ 324-330 (lines=7) @@
321
     * @param string $uri
322
     * @param string $lang language identifier.
323
     */
324
    public function getConceptHierarchy($uri, $lang)
325
    {
326
        $lang = $lang ? $lang : $this->getEnvLang();
327
        $fallback = count($this->config->getLanguageOrder($lang)) > 1 ? $this->config->getLanguageOrder($lang)[1] : $this->config->getDefaultLanguage();
328
        $props = $this->config->getHierarchyProperty();
329
        return $this->getSparql()->queryParentList($uri, $lang, $fallback, $props);
330
    }
331
332
    /**
333
     * Gets the child relations of a concept and whether these children have more children.
@@ 336-342 (lines=7) @@
333
     * Gets the child relations of a concept and whether these children have more children.
334
     * @param string $uri
335
     */
336
    public function getConceptChildren($uri, $lang)
337
    {
338
        $lang = $lang ? $lang : $this->getEnvLang();
339
        $fallback = count($this->config->getLanguageOrder($lang)) > 1 ? $this->config->getLanguageOrder($lang)[1] : $this->config->getDefaultLanguage();
340
        $props = $this->config->getHierarchyProperty();
341
        return $this->getSparql()->queryChildren($uri, $lang, $fallback, $props);
342
    }
343
344
    /**
345
     * Gets the skos:narrower relations of a concept.