Showing 1,726 of 2,403 total issues
Consider simplifying this complex logical expression. Open
Open
if (
$record1 === null ||
$record2 === null ||
$record1 === $record2 ||
$record1->tag() !== $record2->tag() ||
Consider simplifying this complex logical expression. Open
Open
if (
$record1 === null ||
$record2 === null ||
$record1 === $record2 ||
$record1->tag() !== $record2->tag() ||
Consider simplifying this complex logical expression. Open
Open
if (
$record1 === null ||
$record2 === null ||
$record1 === $record2 ||
$record1->tag() !== $record2->tag() ||
Consider simplifying this complex logical expression. Open
Open
if (
$husb instanceof Individual &&
$wife instanceof Individual &&
($husb->getAllDeathDates() || !$husb->isDead()) &&
($wife->getAllDeathDates() || !$wife->isDead())
Function calDateClicked
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
webtrees.calDateClicked = function (dateFieldId, dateDivId, year, month, day) {
Method addUrlFavorite
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private function addUrlFavorite(Tree $tree, UserInterface $user, string $url, string $title, string $note): void
Method updateCensusAssistant
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function updateCensusAssistant(ServerRequestInterface $request, Individual $individual, string $fact_id, string $newged, bool $keep_chan): string
Method individuals
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected function individuals(Tree $tree, array $surns_to_show, string $galpha, bool $marnm, bool $fams): Collection
Method newGedcomRecord
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private function newGedcomRecord(string $type, string $xref, string $gedcom, string|null $pending, Tree $tree): GedcomRecord
Method thumbnailResponse
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
FilesystemOperator $filesystem,
string $path,
int $width,
int $height,
string $fit
Method mediaFileThumbnailResponse
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
MediaFile $media_file,
int $width,
int $height,
string $fit,
bool $add_watermark
Method editLinesToGedcom
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function editLinesToGedcom(string $record_type, array $levels, array $tags, array $values, bool $append = true): string
Method handleCollection
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function handleCollection(ServerRequestInterface $request, Collection $collection, array $search_columns, array $sort_columns, Closure $callback): ResponseInterface
Method search
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected function search(Tree $tree, string $query, int $offset, int $limit, string $at): Collection
Method recordError
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private function recordError(Tree $tree, string $type, string $xref, string $message, string $tag): object
Method search
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected function search(Tree $tree, string $query, int $offset, int $limit, string $at): Collection
Method search
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected function search(Tree $tree, string $query, int $offset, int $limit, string $at): Collection
Method search
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected function search(Tree $tree, string $query, int $offset, int $limit, string $at): Collection
Method getAnniversaryEvents
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function getAnniversaryEvents(int $jd, string $facts, Tree $tree, string $filterof = '', string $filtersx = ''): array
Method search
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected function search(Tree $tree, string $query, int $offset, int $limit, string $at): Collection