Skip to content

Commit 82be039

Browse files
Merge pull request #27 from familytree365/analysis-1b75j1
Apply fixes from StyleCI
2 parents 5d71595 + c0c9904 commit 82be039

75 files changed

Lines changed: 164 additions & 182 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
declare(strict_types=1);
44

5-
use Rector\Core\Configuration\Option;
65
use Rector\Php74\Rector\Property\TypedPropertyRector;
76
use Rector\Set\ValueObject\SetList;
87
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

src/Gedcom.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,31 +93,31 @@ class Gedcom
9393
/**
9494
* Retrieves the header record of the GEDCOM file.
9595
*/
96-
public function setHead (\Gedcom\Record\Head $head)
96+
public function setHead(\Gedcom\Record\Head $head)
9797
{
9898
$this->head = $head;
9999
}
100100

101101
/**
102102
* Retrieves the submission record of the GEDCOM file.
103103
*/
104-
public function setSubn (\Gedcom\Record\Subn $subn)
104+
public function setSubn(\Gedcom\Record\Subn $subn)
105105
{
106106
$this->subn = $subn;
107107
}
108108

109109
/**
110110
* Adds a source to the collection of sources.
111111
*/
112-
public function addSour (\Gedcom\Record\Sour $sour)
112+
public function addSour(\Gedcom\Record\Sour $sour)
113113
{
114114
$this->sour[$sour->getSour()] = $sour;
115115
}
116116

117117
/**
118118
* Adds an individual to the collection of individuals.
119119
*/
120-
public function addIndi (\Gedcom\Record\Indi $indi)
120+
public function addIndi(\Gedcom\Record\Indi $indi)
121121
{
122122
$this->indi[$indi->getId()] = $indi;
123123
if ($indi->getUid()) {
@@ -128,39 +128,39 @@ public function addIndi (\Gedcom\Record\Indi $indi)
128128
/**
129129
* Adds a family to the collection of families.
130130
*/
131-
public function addFam (\Gedcom\Record\Fam $fam)
131+
public function addFam(\Gedcom\Record\Fam $fam)
132132
{
133133
$this->fam[$fam->getId()] = $fam;
134134
}
135135

136136
/**
137137
* Adds a note to the collection of notes.
138138
*/
139-
public function addNote (\Gedcom\Record\Note $note)
139+
public function addNote(\Gedcom\Record\Note $note)
140140
{
141141
$this->note[$note->getId()] = $note;
142142
}
143143

144144
/**
145145
* Adds a repository to the collection of repositories.
146146
*/
147-
public function addRepo (\Gedcom\Record\Repo $repo)
147+
public function addRepo(\Gedcom\Record\Repo $repo)
148148
{
149149
$this->repo[$repo->getRepo()] = $repo;
150150
}
151151

152152
/**
153153
* Adds an object to the collection of objects.
154154
*/
155-
public function addObje (\Gedcom\Record\Obje $obje)
155+
public function addObje(\Gedcom\Record\Obje $obje)
156156
{
157157
$this->obje[$obje->getId()] = $obje;
158158
}
159159

160160
/**
161161
* Adds a submitter record to the collection of submitters.
162162
*/
163-
public function addSubm (\Gedcom\Record\Subm $subm)
163+
public function addSubm(\Gedcom\Record\Subm $subm)
164164
{
165165
$this->subm[$subm->getSubm()] = $subm;
166166
}

src/Parser.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -239,23 +239,23 @@ public function parse($fileName)
239239
}
240240

241241
if (isset($record[1]) && trim($record[1]) == 'HEAD') {
242-
\Gedcom\Parser\Head::parse($this);
242+
\Gedcom\Parser\Head::parse($this);
243243
} elseif (isset($record[2]) && trim($record[2]) == 'SUBN') {
244-
\Gedcom\Parser\Subn::parse($this);
244+
\Gedcom\Parser\Subn::parse($this);
245245
} elseif (isset($record[2]) && trim($record[2]) == 'SUBM') {
246-
\Gedcom\Parser\Subm::parse($this);
246+
\Gedcom\Parser\Subm::parse($this);
247247
} elseif (isset($record[2]) && $record[2] == 'SOUR') {
248-
\Gedcom\Parser\Sour::parse($this);
248+
\Gedcom\Parser\Sour::parse($this);
249249
} elseif (isset($record[2]) && $record[2] == 'INDI') {
250-
\Gedcom\Parser\Indi::parse($this);
250+
\Gedcom\Parser\Indi::parse($this);
251251
} elseif (isset($record[2]) && $record[2] == 'FAM') {
252-
\Gedcom\Parser\Fam::parse($this);
252+
\Gedcom\Parser\Fam::parse($this);
253253
} elseif (isset($record[2]) && substr(trim($record[2]), 0, 4) == 'NOTE') {
254-
\Gedcom\Parser\Note::parse($this);
254+
\Gedcom\Parser\Note::parse($this);
255255
} elseif (isset($record[2]) && $record[2] == 'REPO') {
256-
\Gedcom\Parser\Repo::parse($this);
256+
\Gedcom\Parser\Repo::parse($this);
257257
} elseif (isset($record[2]) && $record[2] == 'OBJE') {
258-
\Gedcom\Parser\Obje::parse($this);
258+
\Gedcom\Parser\Obje::parse($this);
259259
} elseif (isset($record[1]) && trim($record[1]) == 'TRLR') {
260260
// EOF
261261
break;

src/Parser/Date.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static function parse(\Gedcom\Parser $parser)
2323

2424
$parser->forward();
2525
$record = $parser->getCurrentLineRecord();
26-
26+
2727
if (isset($record[1])) {
2828
$dat = new \Gedcom\Record\Date();
2929
if (!empty($record[2])) {
@@ -34,9 +34,9 @@ public static function parse(\Gedcom\Parser $parser)
3434

3535
return null;
3636
}
37-
37+
3838
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);
4040
}
4141

4242
return null;

src/Parser/Indi/Even.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
namespace Gedcom\Parser\Indi;
1616

17-
use \Gedcom\Parser\Chan;
18-
1917
class Even extends \Gedcom\Parser\Component
2018
{
2119
public static function parse(\Gedcom\Parser $parser)

src/Record/Addr.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
namespace Gedcom\Record;
1616

17-
use \Gedcom\Record;
18-
1917
/**
2018
* Class Addr.
2119
*/

src/Record/Caln.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
namespace Gedcom\Record;
1616

17-
use \Gedcom\Record;
18-
1917
/**
2018
* Class Caln.
2119
*/

src/Record/Chan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace Gedcom\Record;
1616

17-
use \Gedcom\Record;
17+
use Gedcom\Record;
1818

1919
/**
2020
* Class Chan.

src/Record/Data.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
namespace Gedcom\Record;
1616

17-
use \Gedcom\Record;
18-
1917
/**
2018
* Class Data.
2119
*/

src/Record/Date.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
namespace Gedcom\Record;
1616

17-
use \Gedcom\Record;
18-
1917
/**
2018
* Class Date.
2119
*/

0 commit comments

Comments
 (0)