@@ -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 | |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | use Rector\Set\ValueObject\SetList; |
| 8 | 8 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
| 9 | 9 | |
| 10 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
| 10 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
| 11 | 11 | $containerConfigurator->import(SetList::PHP_80); |
| 12 | 12 | // get parameters |
| 13 | 13 | $parameters = $containerConfigurator->parameters(); |
@@ -119,21 +119,21 @@ discard block |
||
| 119 | 119 | $birthday = $indi->getBirthday(); |
| 120 | 120 | if (!empty($birthday)) { |
| 121 | 121 | $output .= $level.' BIRT '."\n"; |
| 122 | - $output .= ($level+1).' DATE '.$birthday."\n"; |
|
| 122 | + $output .= ($level + 1).' DATE '.$birthday."\n"; |
|
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | // $deathday |
| 126 | 126 | $deathday = $indi->getDeathday(); |
| 127 | 127 | if (!empty($deathday)) { |
| 128 | 128 | $output .= $level.' DEAT '."\n"; |
| 129 | - $output .= ($level+1).' DATE '.$deathday."\n"; |
|
| 129 | + $output .= ($level + 1).' DATE '.$deathday."\n"; |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | // $burialday |
| 133 | 133 | $burialday = $indi->getBurialday(); |
| 134 | 134 | if (!empty($burialday)) { |
| 135 | 135 | $output .= $level.' BURI '."\n"; |
| 136 | - $output .= ($level+1).' DATE '.$burialday."\n"; |
|
| 136 | + $output .= ($level + 1).' DATE '.$burialday."\n"; |
|
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | // $rin |
@@ -229,8 +229,8 @@ discard block |
||
| 229 | 229 | $chan = $indi->getChan(); |
| 230 | 230 | if (!empty($chan)) { |
| 231 | 231 | $output .= $level.' CHAN '."\n"; |
| 232 | - $output .= ($level+1).' DATE '.$chan[0]."\n"; |
|
| 233 | - $output .= ($level+1).' TIME '.$chan[1]."\n"; |
|
| 232 | + $output .= ($level + 1).' DATE '.$chan[0]."\n"; |
|
| 233 | + $output .= ($level + 1).' TIME '.$chan[1]."\n"; |
|
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | // Bapl |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | $parser->forward(); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - $date = $chan->getYear() .'-'. $chan->getMonth() .'-'. $chan->getDay(); |
|
| 58 | + $date = $chan->getYear().'-'.$chan->getMonth().'-'.$chan->getDay(); |
|
| 59 | 59 | $chan->setDatetime($date); |
| 60 | 60 | |
| 61 | 61 | return $chan; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | if ($recordType == 'BURI') { |
| 49 | - $a=''; |
|
| 49 | + $a = ''; |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | switch ($recordType) { |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | |
| 112 | 112 | public function setDatetime($date = '') |
| 113 | 113 | { |
| 114 | - $this->datetime = $date .' '. $this->time; |
|
| 114 | + $this->datetime = $date.' '.$this->time; |
|
| 115 | 115 | |
| 116 | 116 | return $this; |
| 117 | 117 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | public function setDate($date) { |
| 42 | 42 | $this->date = $date; |
| 43 | 43 | if ($this->getDay()) { |
| 44 | - $this->dateFormatted = $this->getYear() .'-'. $this->getMonth() .'-'. substr("0{$this->getDay()}", -2); |
|
| 44 | + $this->dateFormatted = $this->getYear().'-'.$this->getMonth().'-'.substr("0{$this->getDay()}", -2); |
|
| 45 | 45 | } |
| 46 | 46 | else { |
| 47 | 47 | $this->month = $this->getMonth(); |
@@ -42,8 +42,7 @@ |
||
| 42 | 42 | $this->date = $date; |
| 43 | 43 | if ($this->getDay()) { |
| 44 | 44 | $this->dateFormatted = $this->getYear() .'-'. $this->getMonth() .'-'. substr("0{$this->getDay()}", -2); |
| 45 | - } |
|
| 46 | - else { |
|
| 45 | + } else { |
|
| 47 | 46 | $this->month = $this->getMonth(); |
| 48 | 47 | $this->year = $this->getYear(); |
| 49 | 48 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | public function setDate($date) { |
| 44 | 44 | $this->date = $date; |
| 45 | 45 | if ($this->getDay()) { |
| 46 | - $this->dateFormatted = $this->getYear() .'-'. $this->getMonth() .'-'. substr("0{$this->getDay()}", -2); |
|
| 46 | + $this->dateFormatted = $this->getYear().'-'.$this->getMonth().'-'.substr("0{$this->getDay()}", -2); |
|
| 47 | 47 | } |
| 48 | 48 | else { |
| 49 | 49 | $this->month = $this->getMonth(); |
@@ -44,8 +44,7 @@ |
||
| 44 | 44 | $this->date = $date; |
| 45 | 45 | if ($this->getDay()) { |
| 46 | 46 | $this->dateFormatted = $this->getYear() .'-'. $this->getMonth() .'-'. substr("0{$this->getDay()}", -2); |
| 47 | - } |
|
| 48 | - else { |
|
| 47 | + } else { |
|
| 49 | 48 | $this->month = $this->getMonth(); |
| 50 | 49 | $this->year = $this->getYear(); |
| 51 | 50 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | public function setDate($date) { |
| 42 | 42 | $this->date = $date; |
| 43 | 43 | if ($this->getDay()) { |
| 44 | - $this->dateFormatted = $this->getYear() .'-'. $this->getMonth() .'-'. substr("0{$this->getDay()}", -2); |
|
| 44 | + $this->dateFormatted = $this->getYear().'-'.$this->getMonth().'-'.substr("0{$this->getDay()}", -2); |
|
| 45 | 45 | } |
| 46 | 46 | else { |
| 47 | 47 | $this->month = $this->getMonth(); |
@@ -42,8 +42,7 @@ |
||
| 42 | 42 | $this->date = $date; |
| 43 | 43 | if ($this->getDay()) { |
| 44 | 44 | $this->dateFormatted = $this->getYear() .'-'. $this->getMonth() .'-'. substr("0{$this->getDay()}", -2); |
| 45 | - } |
|
| 46 | - else { |
|
| 45 | + } else { |
|
| 47 | 46 | $this->month = $this->getMonth(); |
| 48 | 47 | $this->year = $this->getYear(); |
| 49 | 48 | } |