Code Duplication    Length = 4-4 lines in 2 locations

model/sparql/GenericSparql.php 2 locations

@@ 1038-1041 (lines=4) @@
1035
        if (isset($row->plabel)) {
1036
            $hit['matchedPrefLabel'] = $row->plabel->getValue();
1037
            $hit['lang'] = $row->plabel->getLang();
1038
        } elseif (isset($row->alabel)) {
1039
            $hit['altLabel'] = $row->alabel->getValue();
1040
            $hit['lang'] = $row->alabel->getLang();
1041
        } elseif (isset($row->hlabel)) {
1042
            $hit['hiddenLabel'] = $row->hlabel->getValue();
1043
            $hit['lang'] = $row->hlabel->getLang();
1044
        }
@@ 1185-1188 (lines=4) @@
1182
            $hit['prefLabel'] = $row->label->getValue();
1183
            $hit['lang'] = $row->label->getLang();
1184
1185
            if (isset($row->alabel)) {
1186
                $hit['altLabel'] = $row->alabel->getValue();
1187
                $hit['lang'] = $row->alabel->getLang();
1188
            }
1189
1190
            $ret[] = $hit;
1191
        }