Code Duplication    Length = 4-4 lines in 2 locations

model/sparql/GenericSparql.php 2 locations

@@ 1035-1038 (lines=4) @@
1032
        if (isset($row->plabel)) {
1033
            $hit['matchedPrefLabel'] = $row->plabel->getValue();
1034
            $hit['lang'] = $row->plabel->getLang();
1035
        } elseif (isset($row->alabel)) {
1036
            $hit['altLabel'] = $row->alabel->getValue();
1037
            $hit['lang'] = $row->alabel->getLang();
1038
        } elseif (isset($row->hlabel)) {
1039
            $hit['hiddenLabel'] = $row->hlabel->getValue();
1040
            $hit['lang'] = $row->hlabel->getLang();
1041
        }
@@ 1182-1185 (lines=4) @@
1179
            $hit['prefLabel'] = $row->label->getValue();
1180
            $hit['lang'] = $row->label->getLang();
1181
1182
            if (isset($row->alabel)) {
1183
                $hit['altLabel'] = $row->alabel->getValue();
1184
                $hit['lang'] = $row->alabel->getLang();
1185
            }
1186
1187
            $ret[] = $hit;
1188
        }