@@ -40,13 +40,13 @@ |
||
| 40 | 40 | { |
| 41 | 41 | $head = $gedcom->getHead(); |
| 42 | 42 | $subn = $gedcom->getSubn(); |
| 43 | - $subms = $gedcom->getSubm(); // array() |
|
| 44 | - $sours = $gedcom->getSour(); // array() |
|
| 45 | - $indis = $gedcom->getIndi(); // array() |
|
| 46 | - $fams = $gedcom->getFam(); // array() |
|
| 47 | - $notes = $gedcom->getNote(); // array() |
|
| 48 | - $repos = $gedcom->getRepo(); // array() |
|
| 49 | - $objes = $gedcom->getObje(); // array() |
|
| 43 | + $subms = $gedcom->getSubm(); // array() |
|
| 44 | + $sours = $gedcom->getSour(); // array() |
|
| 45 | + $indis = $gedcom->getIndi(); // array() |
|
| 46 | + $fams = $gedcom->getFam(); // array() |
|
| 47 | + $notes = $gedcom->getNote(); // array() |
|
| 48 | + $repos = $gedcom->getRepo(); // array() |
|
| 49 | + $objes = $gedcom->getObje(); // array() |
|
| 50 | 50 | |
| 51 | 51 | $output = '0 FORMAT '.$format."\n"; |
| 52 | 52 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | if ($dat->getYear() && $dat->getMonth() && $dat->getDay()) { |
| 39 | - return $dat->getYear() .'-'. substr("0{$dat->getMonth()}", -2) .'-'. substr("0{$dat->getDay()}", -2); |
|
| 39 | + return $dat->getYear().'-'.substr("0{$dat->getMonth()}", -2).'-'.substr("0{$dat->getDay()}", -2); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | return null; |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | /** |
| 94 | 94 | * Retrieves the header record of the GEDCOM file. |
| 95 | 95 | */ |
| 96 | - public function setHead (\Gedcom\Record\Head $head) |
|
| 96 | + public function setHead(\Gedcom\Record\Head $head) |
|
| 97 | 97 | { |
| 98 | 98 | $this->head = $head; |
| 99 | 99 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | /** |
| 102 | 102 | * Retrieves the submission record of the GEDCOM file. |
| 103 | 103 | */ |
| 104 | - public function setSubn (\Gedcom\Record\Subn $subn) |
|
| 104 | + public function setSubn(\Gedcom\Record\Subn $subn) |
|
| 105 | 105 | { |
| 106 | 106 | $this->subn = $subn; |
| 107 | 107 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | /** |
| 110 | 110 | * Adds a source to the collection of sources. |
| 111 | 111 | */ |
| 112 | - public function addSour (\Gedcom\Record\Sour $sour) |
|
| 112 | + public function addSour(\Gedcom\Record\Sour $sour) |
|
| 113 | 113 | { |
| 114 | 114 | $this->sour[$sour->getSour()] = $sour; |
| 115 | 115 | } |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | /** |
| 118 | 118 | * Adds an individual to the collection of individuals. |
| 119 | 119 | */ |
| 120 | - public function addIndi (\Gedcom\Record\Indi $indi) |
|
| 120 | + public function addIndi(\Gedcom\Record\Indi $indi) |
|
| 121 | 121 | { |
| 122 | 122 | $this->indi[$indi->getId()] = $indi; |
| 123 | 123 | if ($indi->getUid()) { |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | /** |
| 129 | 129 | * Adds a family to the collection of families. |
| 130 | 130 | */ |
| 131 | - public function addFam (\Gedcom\Record\Fam $fam) |
|
| 131 | + public function addFam(\Gedcom\Record\Fam $fam) |
|
| 132 | 132 | { |
| 133 | 133 | $this->fam[$fam->getId()] = $fam; |
| 134 | 134 | } |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | /** |
| 137 | 137 | * Adds a note to the collection of notes. |
| 138 | 138 | */ |
| 139 | - public function addNote (\Gedcom\Record\Note $note) |
|
| 139 | + public function addNote(\Gedcom\Record\Note $note) |
|
| 140 | 140 | { |
| 141 | 141 | $this->note[$note->getId()] = $note; |
| 142 | 142 | } |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | /** |
| 145 | 145 | * Adds a repository to the collection of repositories. |
| 146 | 146 | */ |
| 147 | - public function addRepo (\Gedcom\Record\Repo $repo) |
|
| 147 | + public function addRepo(\Gedcom\Record\Repo $repo) |
|
| 148 | 148 | { |
| 149 | 149 | $this->repo[$repo->getRepo()] = $repo; |
| 150 | 150 | } |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | /** |
| 153 | 153 | * Adds an object to the collection of objects. |
| 154 | 154 | */ |
| 155 | - public function addObje (\Gedcom\Record\Obje $obje) |
|
| 155 | + public function addObje(\Gedcom\Record\Obje $obje) |
|
| 156 | 156 | { |
| 157 | 157 | $this->obje[$obje->getId()] = $obje; |
| 158 | 158 | } |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | /** |
| 161 | 161 | * Adds a submitter record to the collection of submitters. |
| 162 | 162 | */ |
| 163 | - public function addSubm (\Gedcom\Record\Subm $subm) |
|
| 163 | + public function addSubm(\Gedcom\Record\Subm $subm) |
|
| 164 | 164 | { |
| 165 | 165 | $this->subm[$subm->getSubm()] = $subm; |
| 166 | 166 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * @param int $level |
| 21 | 21 | * @return string |
| 22 | 22 | */ |
| 23 | - public static function convert (\Gedcom\Record\Sour &$sour, $level) |
|
| 23 | + public static function convert(\Gedcom\Record\Sour &$sour, $level) |
|
| 24 | 24 | { |
| 25 | 25 | $output = ''; |
| 26 | 26 | $_sour = $sour->getSour(); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * |
| 23 | 23 | * @return string |
| 24 | 24 | */ |
| 25 | - public static function convert (\Gedcom\Record\Subn &$subn) |
|
| 25 | + public static function convert(\Gedcom\Record\Subn &$subn) |
|
| 26 | 26 | { |
| 27 | 27 | $level = 0; |
| 28 | 28 | $output = ''; |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * |
| 23 | 23 | * @return string |
| 24 | 24 | */ |
| 25 | - public static function convert (\Gedcom\Record\Chan &$chan, $level) |
|
| 25 | + public static function convert(\Gedcom\Record\Chan &$chan, $level) |
|
| 26 | 26 | { |
| 27 | 27 | $output = $level." CHAN \n"; |
| 28 | 28 | // level up |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * @param int $level |
| 22 | 22 | * @return string |
| 23 | 23 | */ |
| 24 | - public static function convert (\Gedcom\Record\Addr &$addr, $format = self::GEDCOM55, $level = 1) |
|
| 24 | + public static function convert(\Gedcom\Record\Addr &$addr, $format = self::GEDCOM55, $level = 1) |
|
| 25 | 25 | { |
| 26 | 26 | $addrs = explode("\n", $addr->getAddr()); |
| 27 | 27 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $output .= ($level + 1).' CONT '.$cont."\n"; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - return $output . (($level + 1).' ADR1 '.$addr->adr1."\n". |
|
| 36 | + return $output.(($level + 1).' ADR1 '.$addr->adr1."\n". |
|
| 37 | 37 | ($level + 1).' ADR2 '.$addr->getAdr2()."\n". |
| 38 | 38 | ($level + 1).' CITY '.$addr->getCity()."\n". |
| 39 | 39 | ($level + 1).' STAE '.$addr->getStae()."\n". |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * |
| 23 | 23 | * @return string |
| 24 | 24 | */ |
| 25 | - public static function convert (\Gedcom\Record\Fam &$fam, $level = 0) |
|
| 25 | + public static function convert(\Gedcom\Record\Fam &$fam, $level = 0) |
|
| 26 | 26 | { |
| 27 | 27 | $output = ''; |
| 28 | 28 | $id = $fam->getId(); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * @param int $level |
| 21 | 21 | * @return string |
| 22 | 22 | */ |
| 23 | - public static function convert (\Gedcom\Record\Fam\Slgs &$slgs, $level) |
|
| 23 | + public static function convert(\Gedcom\Record\Fam\Slgs &$slgs, $level) |
|
| 24 | 24 | { |
| 25 | 25 | $output = ''; |
| 26 | 26 | $output .= $level." SLGS \n"; |