Code Duplication    Length = 4-4 lines in 2 locations

model/sparql/GenericSparql.php 2 locations

@@ 1075-1078 (lines=4) @@
1072
        if (isset($row->plabel)) {
1073
            $hit['matchedPrefLabel'] = $row->plabel->getValue();
1074
            $hit['lang'] = $row->plabel->getLang();
1075
        } elseif (isset($row->alabel)) {
1076
            $hit['altLabel'] = $row->alabel->getValue();
1077
            $hit['lang'] = $row->alabel->getLang();
1078
        } elseif (isset($row->hlabel)) {
1079
            $hit['hiddenLabel'] = $row->hlabel->getValue();
1080
            $hit['lang'] = $row->hlabel->getLang();
1081
        }
@@ 1220-1223 (lines=4) @@
1217
            $hit['prefLabel'] = $row->label->getValue();
1218
            $hit['lang'] = $row->label->getLang();
1219
1220
            if (isset($row->alabel)) {
1221
                $hit['altLabel'] = $row->alabel->getValue();
1222
                $hit['lang'] = $row->alabel->getLang();
1223
            }
1224
1225
            $ret[] = $hit;
1226
        }