Code Duplication    Length = 4-4 lines in 2 locations

model/sparql/GenericSparql.php 2 locations

@@ 973-976 (lines=4) @@
970
        if (isset($row->plabel)) {
971
            $hit['matchedPrefLabel'] = $row->plabel->getValue();
972
            $hit['lang'] = $row->plabel->getLang();
973
        } elseif (isset($row->alabel)) {
974
            $hit['altLabel'] = $row->alabel->getValue();
975
            $hit['lang'] = $row->alabel->getLang();
976
        } elseif (isset($row->hlabel)) {
977
            $hit['hiddenLabel'] = $row->hlabel->getValue();
978
            $hit['lang'] = $row->hlabel->getLang();
979
        }
@@ 1121-1124 (lines=4) @@
1118
            $hit['prefLabel'] = $row->label->getValue();
1119
            $hit['lang'] = $row->label->getLang();
1120
1121
            if (isset($row->alabel)) {
1122
                $hit['altLabel'] = $row->alabel->getValue();
1123
                $hit['lang'] = $row->alabel->getLang();
1124
            }
1125
1126
            $ret[] = $hit;
1127
        }