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