Showing 1,726 of 2,403 total issues
Method search
has 5 arguments (exceeds 4 allowed). Consider refactoring. 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
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
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
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
abstract 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
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
protected function search(Tree $tree, string $query, int $offset, int $limit, string $at): Collection
Method handleQuery
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function handleQuery(ServerRequestInterface $request, Builder $query, array $search_columns, array $sort_columns, Closure $callback): ResponseInterface
Method paginateQuery
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
private function paginateQuery(Builder $query, Closure $row_mapper, Closure $row_filter, int $offset, int $limit): Collection
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
CaptchaService $captcha_service,
EmailService $email_service,
MessageService $message_service,
RateLimitService $rate_limit_service,
UserService $user_service
Method searchIndividualsPhonetic
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function searchIndividualsPhonetic(string $soundex, string $lastname, string $firstname, string $place, array $search_trees): Collection
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function __construct(int $hue, int $saturation, int $lightness, float $alpha, int $range)
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
string $label,
string $link = '#',
string $class = '',
array $attrs = [],
array $submenus = []
Method thumbnailResponse
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
FilesystemOperator $filesystem,
string $path,
int $width,
int $height,
string $fit
Method mediaFileThumbnailResponse
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
MediaFile $media_file,
int $width,
int $height,
string $fit,
bool $add_watermark
Method commonGivenQuery
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
private function commonGivenQuery(string $sex, string $type, bool $show_tot, int $threshold, int $maxtoshow)
Method commonSurnamesQuery
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
string $type,
bool $show_tot,
int $threshold,
int $number_of_surnames,
string $sorting
Function fillYData
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function fillYData($x, $z, $value, array $x_axis, array $z_axis, array &$ydata): void
{
$x = $this->findAxisEntry($x, $x_axis);
$z = $this->findAxisEntry($z, $z_axis);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function canShow
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function canShow(int|null $access_level = null): bool
{
$access_level ??= Auth::accessLevel($this->record->tree());
// Does this record have an explicit restriction notice?
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getFooter
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function getFooter(ServerRequestInterface $request): string
{
$tree = Validator::attributes($request)->treeOptional();
if ($tree === null) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"