Code Duplication    Length = 3-3 lines in 2 locations

src/BibliographicRecord.php 2 locations

@@ 630-632 (lines=3) @@
627
                    );
628
                    $author['normalizedName'] = $author['name'];
629
                    $spl = explode(', ', $author['name']);
630
                    if (count($spl) == 2) {
631
                        $author['name'] = $spl[1] . ' ' . $spl[0];
632
                    }
633
                    $this->parseRelator($node, $author, 'main');
634
                    $this->parseAuthority($node->text('marc:subfield[@code="0"]'), $author);
635
@@ 979-981 (lines=3) @@
976
                    );
977
                    $author['normalizedName'] = $author['name'];
978
                    $spl = explode(', ', $author['name']);
979
                    if (count($spl) == 2) {
980
                        $author['name'] = $spl[1] . ' ' . $spl[0];
981
                    }
982
983
                    $this->parseRelator($node, $author, 'added');
984
                    $this->parseAuthority($node->text('marc:subfield[@code="0"]'), $author);