Code Duplication    Length = 4-4 lines in 2 locations

model/sparql/GenericSparql.php 2 locations

@@ 910-913 (lines=4) @@
907
            if (isset($row->plabel)) {
908
                $hit['matchedPrefLabel'] = $row->plabel->getValue();
909
                $hit['lang'] = $row->plabel->getLang();
910
            } elseif (isset($row->alabel)) {
911
                $hit['altLabel'] = $row->alabel->getValue();
912
                $hit['lang'] = $row->alabel->getLang();
913
            } elseif (isset($row->hlabel)) {
914
                $hit['hiddenLabel'] = $row->hlabel->getValue();
915
                $hit['lang'] = $row->hlabel->getLang();
916
            }
@@ 1051-1054 (lines=4) @@
1048
            $hit['prefLabel'] = $row->label->getValue();
1049
            $hit['lang'] = $row->label->getLang();
1050
1051
            if (isset($row->alabel)) {
1052
                $hit['altLabel'] = $row->alabel->getValue();
1053
                $hit['lang'] = $row->alabel->getLang();
1054
            }
1055
1056
            $ret[] = $hit;
1057
        }