Code Duplication    Length = 4-4 lines in 2 locations

model/sparql/GenericSparql.php 2 locations

@@ 914-917 (lines=4) @@
911
            if (isset($row->plabel)) {
912
                $hit['matchedPrefLabel'] = $row->plabel->getValue();
913
                $hit['lang'] = $row->plabel->getLang();
914
            } elseif (isset($row->alabel)) {
915
                $hit['altLabel'] = $row->alabel->getValue();
916
                $hit['lang'] = $row->alabel->getLang();
917
            } elseif (isset($row->hlabel)) {
918
                $hit['hiddenLabel'] = $row->hlabel->getValue();
919
                $hit['lang'] = $row->hlabel->getLang();
920
            }
@@ 1046-1049 (lines=4) @@
1043
            $hit['prefLabel'] = $row->label->getValue();
1044
            $hit['lang'] = $row->label->getLang();
1045
1046
            if (isset($row->alabel)) {
1047
                $hit['altLabel'] = $row->alabel->getValue();
1048
                $hit['lang'] = $row->alabel->getLang();
1049
            }
1050
1051
            $ret[] = $hit;
1052
        }