Code Duplication    Length = 4-4 lines in 2 locations

model/sparql/GenericSparql.php 2 locations

@@ 1116-1119 (lines=4) @@
1113
        if (isset($row->plabel)) {
1114
            $hit['matchedPrefLabel'] = $row->plabel->getValue();
1115
            $hit['lang'] = $row->plabel->getLang();
1116
        } elseif (isset($row->alabel)) {
1117
            $hit['altLabel'] = $row->alabel->getValue();
1118
            $hit['lang'] = $row->alabel->getLang();
1119
        } elseif (isset($row->hlabel)) {
1120
            $hit['hiddenLabel'] = $row->hlabel->getValue();
1121
            $hit['lang'] = $row->hlabel->getLang();
1122
        }
@@ 1269-1272 (lines=4) @@
1266
            $hit['prefLabel'] = $row->label->getValue();
1267
            $hit['lang'] = $row->label->getLang();
1268
1269
            if (isset($row->alabel)) {
1270
                $hit['altLabel'] = $row->alabel->getValue();
1271
                $hit['lang'] = $row->alabel->getLang();
1272
            }
1273
1274
            if (isset($row->qualifier)) {
1275
                if ($row->qualifier instanceof EasyRdf\Literal) {