| Conditions | 9 |
| Paths | 256 |
| Total Lines | 49 |
| Code Lines | 29 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 63 | public function recordsToFix(Tree $tree, array $params): Collection |
||
| 64 | { |
||
| 65 | $families = $this->familiesToFix($tree, $params); |
||
|
1 ignored issue
–
show
|
|||
| 66 | $individuals = $this->individualsToFix($tree, $params); |
||
|
1 ignored issue
–
show
|
|||
| 67 | $locations = $this->locationsToFix($tree, $params); |
||
|
1 ignored issue
–
show
|
|||
| 68 | $media = $this->mediaToFix($tree, $params); |
||
|
1 ignored issue
–
show
|
|||
| 69 | $notes = $this->notesToFix($tree, $params); |
||
|
1 ignored issue
–
show
|
|||
| 70 | $repositories = $this->repositoriesToFix($tree, $params); |
||
|
1 ignored issue
–
show
|
|||
| 71 | $sources = $this->sourcesToFix($tree, $params); |
||
|
1 ignored issue
–
show
|
|||
| 72 | $submitters = $this->submittersToFix($tree, $params); |
||
|
1 ignored issue
–
show
|
|||
| 73 | |||
| 74 | $records = new Collection(); |
||
| 75 | |||
| 76 | if ($families !== null) { |
||
|
1 ignored issue
–
show
|
|||
| 77 | $records = $records->concat($this->mergePendingRecords($families, $tree, Family::RECORD_TYPE)); |
||
| 78 | } |
||
| 79 | |||
| 80 | if ($individuals !== null) { |
||
|
1 ignored issue
–
show
|
|||
| 81 | $records = $records->concat($this->mergePendingRecords($individuals, $tree, Individual::RECORD_TYPE)); |
||
| 82 | } |
||
| 83 | |||
| 84 | if ($locations !== null) { |
||
|
1 ignored issue
–
show
|
|||
| 85 | $records = $records->concat($this->mergePendingRecords($locations, $tree, Location::RECORD_TYPE)); |
||
| 86 | } |
||
| 87 | |||
| 88 | if ($media !== null) { |
||
|
1 ignored issue
–
show
|
|||
| 89 | $records = $records->concat($this->mergePendingRecords($media, $tree, Media::RECORD_TYPE)); |
||
| 90 | } |
||
| 91 | |||
| 92 | if ($notes !== null) { |
||
|
1 ignored issue
–
show
|
|||
| 93 | $records = $records->concat($this->mergePendingRecords($notes, $tree, Note::RECORD_TYPE)); |
||
| 94 | } |
||
| 95 | |||
| 96 | if ($repositories !== null) { |
||
|
1 ignored issue
–
show
|
|||
| 97 | $records = $records->concat($this->mergePendingRecords($repositories, $tree, Repository::RECORD_TYPE)); |
||
| 98 | } |
||
| 99 | |||
| 100 | if ($sources !== null) { |
||
|
1 ignored issue
–
show
|
|||
| 101 | $records = $records->concat($this->mergePendingRecords($sources, $tree, Source::RECORD_TYPE)); |
||
| 102 | } |
||
| 103 | |||
| 104 | if ($submitters !== null) { |
||
|
1 ignored issue
–
show
|
|||
| 105 | $records = $records->concat($this->mergePendingRecords($submitters, $tree, Submitter::RECORD_TYPE)); |
||
| 106 | } |
||
| 107 | |||
| 108 | return $records |
||
| 109 | ->unique() |
||
| 110 | ->sort(static function (stdClass $x, stdClass $y) { |
||
| 111 | return $x->xref <=> $y->xref; |
||
| 112 | }); |
||
| 433 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.