Code Duplication    Length = 4-4 lines in 2 locations

model/sparql/GenericSparql.php 2 locations

@@ 1147-1150 (lines=4) @@
1144
        if (isset($row->plabel)) {
1145
            $hit['matchedPrefLabel'] = $row->plabel->getValue();
1146
            $hit['lang'] = $row->plabel->getLang();
1147
        } elseif (isset($row->alabel)) {
1148
            $hit['altLabel'] = $row->alabel->getValue();
1149
            $hit['lang'] = $row->alabel->getLang();
1150
        } elseif (isset($row->hlabel)) {
1151
            $hit['hiddenLabel'] = $row->hlabel->getValue();
1152
            $hit['lang'] = $row->hlabel->getLang();
1153
        }
@@ 1302-1305 (lines=4) @@
1299
            $hit['prefLabel'] = $row->label->getValue();
1300
            $hit['lang'] = $row->label->getLang();
1301
1302
            if (isset($row->alabel)) {
1303
                $hit['altLabel'] = $row->alabel->getValue();
1304
                $hit['lang'] = $row->alabel->getLang();
1305
            }
1306
1307
            if (isset($row->qualifier)) {
1308
                if ($row->qualifier instanceof EasyRdf\Literal) {