Code Duplication    Length = 4-4 lines in 2 locations

model/sparql/GenericSparql.php 2 locations

@@ 1080-1083 (lines=4) @@
1077
        if (isset($row->plabel)) {
1078
            $hit['matchedPrefLabel'] = $row->plabel->getValue();
1079
            $hit['lang'] = $row->plabel->getLang();
1080
        } elseif (isset($row->alabel)) {
1081
            $hit['altLabel'] = $row->alabel->getValue();
1082
            $hit['lang'] = $row->alabel->getLang();
1083
        } elseif (isset($row->hlabel)) {
1084
            $hit['hiddenLabel'] = $row->hlabel->getValue();
1085
            $hit['lang'] = $row->hlabel->getLang();
1086
        }
@@ 1230-1233 (lines=4) @@
1227
            $hit['prefLabel'] = $row->label->getValue();
1228
            $hit['lang'] = $row->label->getLang();
1229
1230
            if (isset($row->alabel)) {
1231
                $hit['altLabel'] = $row->alabel->getValue();
1232
                $hit['lang'] = $row->alabel->getLang();
1233
            }
1234
1235
            $ret[] = $hit;
1236
        }