Code Duplication    Length = 4-4 lines in 2 locations

model/sparql/GenericSparql.php 2 locations

@@ 1094-1097 (lines=4) @@
1091
        if (isset($row->plabel)) {
1092
            $hit['matchedPrefLabel'] = $row->plabel->getValue();
1093
            $hit['lang'] = $row->plabel->getLang();
1094
        } elseif (isset($row->alabel)) {
1095
            $hit['altLabel'] = $row->alabel->getValue();
1096
            $hit['lang'] = $row->alabel->getLang();
1097
        } elseif (isset($row->hlabel)) {
1098
            $hit['hiddenLabel'] = $row->hlabel->getValue();
1099
            $hit['lang'] = $row->hlabel->getLang();
1100
        }
@@ 1244-1247 (lines=4) @@
1241
            $hit['prefLabel'] = $row->label->getValue();
1242
            $hit['lang'] = $row->label->getLang();
1243
1244
            if (isset($row->alabel)) {
1245
                $hit['altLabel'] = $row->alabel->getValue();
1246
                $hit['lang'] = $row->alabel->getLang();
1247
            }
1248
1249
            $ret[] = $hit;
1250
        }