Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/PhpGedcom/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function getCurrentLineRecord($pieces = 3)

$line = trim($this->_line);

$this->_lineRecord = explode(' ', $line, $pieces);
$this->_lineRecord = array_pad(explode(' ', $line, $pieces), 3, '');
$this->_linePieces = $pieces;

return $this->_lineRecord;
Expand Down
8 changes: 4 additions & 4 deletions library/PhpGedcom/Record/Repo.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Repo extends Record implements Noteable
* @param Phon $phon
* @return Repo
*/
public function addPhon($phon = new Phon)
public function addPhon($phon)
{
$this->phon[] = $phon;
return $this;
Expand All @@ -84,7 +84,7 @@ public function getPhon()
* @param Refn $refn
* @return Repo
*/
public function addRefn($refn = new Refn)
public function addRefn($refn)
{
$this->refn[] = $refn;
return $this;
Expand All @@ -102,7 +102,7 @@ public function getRefn()
* @param NoteRef $note
* @return Repo
*/
public function addNote($note = new NoteRef)
public function addNote($note = array())
{
$this->note[] = $note;
return $this;
Expand Down Expand Up @@ -156,7 +156,7 @@ public function getName()
* @param \PhpGedcom\Record\Addr $addr
* @return Repo
*/
public function setAddr($addr = new Addr)
public function setAddr($addr)
{
$this->addr = $addr;
return $this;
Expand Down