Code Duplication    Length = 4-4 lines in 2 locations

model/sparql/GenericSparql.php 2 locations

@@ 1137-1140 (lines=4) @@
1134
        if (isset($row->plabel)) {
1135
            $hit['matchedPrefLabel'] = $row->plabel->getValue();
1136
            $hit['lang'] = $row->plabel->getLang();
1137
        } elseif (isset($row->alabel)) {
1138
            $hit['altLabel'] = $row->alabel->getValue();
1139
            $hit['lang'] = $row->alabel->getLang();
1140
        } elseif (isset($row->hlabel)) {
1141
            $hit['hiddenLabel'] = $row->hlabel->getValue();
1142
            $hit['lang'] = $row->hlabel->getLang();
1143
        }
@@ 1290-1293 (lines=4) @@
1287
            $hit['prefLabel'] = $row->label->getValue();
1288
            $hit['lang'] = $row->label->getLang();
1289
1290
            if (isset($row->alabel)) {
1291
                $hit['altLabel'] = $row->alabel->getValue();
1292
                $hit['lang'] = $row->alabel->getLang();
1293
            }
1294
1295
            if (isset($row->qualifier)) {
1296
                if ($row->qualifier instanceof EasyRdf\Literal) {