Skip to content

Commit

Permalink
PHPdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed Dec 23, 2024
1 parent 8359930 commit 26f2c62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 46 deletions.
40 changes: 1 addition & 39 deletions app/Services/LinkedRecordService.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@
class LinkedRecordService
{
/**
* Find all records linked to a record.
*
* @param GedcomRecord $record
*
* @return Collection<int,Family>
* @return Collection<int,GedcomRecord>
*/
public function allLinkedRecords(GedcomRecord $record): Collection
{
Expand Down Expand Up @@ -78,11 +74,6 @@ public function allLinkedRecords(GedcomRecord $record): Collection
}

/**
* Find families linked to a record.
*
* @param GedcomRecord $record
* @param string|null $link_type
*
* @return Collection<int,Family>
*/
public function linkedFamilies(GedcomRecord $record, string|null $link_type = null): Collection
Expand All @@ -109,11 +100,6 @@ public function linkedFamilies(GedcomRecord $record, string|null $link_type = nu
}

/**
* Find individuals linked to a record.
*
* @param GedcomRecord $record
* @param string|null $link_type
*
* @return Collection<int,Individual>
*/
public function linkedIndividuals(GedcomRecord $record, string|null $link_type = null): Collection
Expand All @@ -140,10 +126,6 @@ public function linkedIndividuals(GedcomRecord $record, string|null $link_type =
}

/**
* Find locations linked to a record.
*
* @param GedcomRecord $record
*
* @return Collection<int,Location>
*/
public function linkedLocations(GedcomRecord $record): Collection
Expand All @@ -165,10 +147,6 @@ public function linkedLocations(GedcomRecord $record): Collection
}

/**
* Find media objects linked to a record.
*
* @param GedcomRecord $record
*
* @return Collection<int,Media>
*/
public function linkedMedia(GedcomRecord $record): Collection
Expand All @@ -189,10 +167,6 @@ public function linkedMedia(GedcomRecord $record): Collection
}

/**
* Find notes linked to a record.
*
* @param GedcomRecord $record
*
* @return Collection<int,Note>
*/
public function linkedNotes(GedcomRecord $record): Collection
Expand All @@ -214,10 +188,6 @@ public function linkedNotes(GedcomRecord $record): Collection
}

/**
* Find repositories linked to a record.
*
* @param GedcomRecord $record
*
* @return Collection<int,Repository>
*/
public function linkedRepositories(GedcomRecord $record): Collection
Expand All @@ -239,10 +209,6 @@ public function linkedRepositories(GedcomRecord $record): Collection
}

/**
* Find sources linked to a record.
*
* @param GedcomRecord $record
*
* @return Collection<int,Source>
*/
public function linkedSources(GedcomRecord $record): Collection
Expand All @@ -263,10 +229,6 @@ public function linkedSources(GedcomRecord $record): Collection
}

/**
* Find submitters linked to a record.
*
* @param GedcomRecord $record
*
* @return Collection<int,Repository>
*/
public function linkedSubmitters(GedcomRecord $record): Collection
Expand Down
8 changes: 1 addition & 7 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -1620,12 +1620,6 @@ parameters:
count: 1
path: app/Http/RequestHandlers/DataFixUpdateAll.php

-
message: '#^Instanceof between Fisharebest\\Webtrees\\Family and Fisharebest\\Webtrees\\Family will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
count: 1
path: app/Http/RequestHandlers/DeleteRecord.php

-
message: '#^Method Fisharebest\\Webtrees\\Http\\RequestHandlers\\DeleteRecord\:\:removeLinks\(\) should return string but returns string\|null\.$#'
identifier: return.type
Expand Down Expand Up @@ -7135,7 +7129,7 @@ parameters:
path: app/Services/IndividualFactsService.php

-
message: '#^Method Fisharebest\\Webtrees\\Services\\LinkedRecordService\:\:allLinkedRecords\(\) should return Illuminate\\Support\\Collection\<int, Fisharebest\\Webtrees\\Family\> but returns Illuminate\\Support\\Collection\<\(int\|string\), Fisharebest\\Webtrees\\GedcomRecord\|null\>\.$#'
message: '#^Method Fisharebest\\Webtrees\\Services\\LinkedRecordService\:\:allLinkedRecords\(\) should return Illuminate\\Support\\Collection\<int, Fisharebest\\Webtrees\\GedcomRecord\> but returns Illuminate\\Support\\Collection\<\(int\|string\), Fisharebest\\Webtrees\\GedcomRecord\|null\>\.$#'
identifier: return.type
count: 1
path: app/Services/LinkedRecordService.php
Expand Down

0 comments on commit 26f2c62

Please sign in to comment.