Code Duplication    Length = 9-9 lines in 3 locations

src/BibliographicRecord.php 3 locations

@@ 906-914 (lines=9) @@
903
                    array_push($subjects, $tmp);
904
                    break;
905
906
                case 648:
907
                    $tmp = $this->parseSubjectAddedEntry($node);
908
909
                    $emne = $node->text('marc:subfield[@code="a"]');
910
                    $tmp['type'] = 'chronologic';
911
                    $tmp['term'] = trim($emne, '.') . $tmp['term'];
912
913
                    array_push($subjects, $tmp);
914
                    break;
915
916
                case 650:
917
                    $tmp = $this->parseSubjectAddedEntry($node);
@@ 916-924 (lines=9) @@
913
                    array_push($subjects, $tmp);
914
                    break;
915
916
                case 650:
917
                    $tmp = $this->parseSubjectAddedEntry($node);
918
919
                    $emne = $node->text('marc:subfield[@code="a"]');
920
                    $tmp['term'] = trim($emne, '.') . $tmp['term'];
921
                    $tmp['type'] = 'topic';
922
923
                    array_push($subjects, $tmp);
924
                    break;
925
926
                case 651:
927
                    $tmp = $this->parseSubjectAddedEntry($node);
@@ 926-934 (lines=9) @@
923
                    array_push($subjects, $tmp);
924
                    break;
925
926
                case 651:
927
                    $tmp = $this->parseSubjectAddedEntry($node);
928
929
                    $emne = $node->text('marc:subfield[@code="a"]');
930
                    $tmp['type'] = 'geographic';
931
                    $tmp['term'] = trim($emne, '.') . $tmp['term'];
932
933
                    array_push($subjects, $tmp);
934
                    break;
935
936
                case 653:
937
                    $tmp = array('type' => null, 'vocabulary' => null);