Showing 1,726 of 2,403 total issues
Method handle
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(ServerRequestInterface $request): ResponseInterface
{
$data_filesystem = Registry::filesystem()->data();
$this->layout = 'layouts/administration';
Method handle
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(ServerRequestInterface $request): ResponseInterface
{
$username = Validator::parsedBody($request)->string('username');
$real_name = Validator::parsedBody($request)->string('real_name');
$email = Validator::parsedBody($request)->string('email');
Method updateNames
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function updateNames(string $xref, int $ged_id, Individual $record): void
{
// Insert all new rows together
$rows = [];
Method columns
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function columns(): array
{
return [
new CensusColumnNull($this, 'Street', 'Street,avenue,road,etc'),
new CensusColumnNull($this, 'Number', 'House number (in cities and towns)'),
Method init
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function init(string $code, bool $setup = false): void
{
self::$locale = Locale::create($code);
// Load the translation file
Function drawComboChart
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drawComboChart (elementId, data, options) {
// Default chart options
const defaults = {
title: '',
subtitle: '',
Method tryContinue
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function tryContinue(Cursor $cursor, BlockContinueParserInterface $activeBlockParser): BlockContinue|null
{
$line = $cursor->getLine();
if ($line === CensusTableExtension::CA_SUFFIX) {
Method normalizeExceptions
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function normalizeExceptions(): array
{
return [
'A' . UTF8::COMBINING_CARON => UTF8::LATIN_CAPITAL_LETTER_A_WITH_ACUTE,
'C' . UTF8::COMBINING_CARON => UTF8::LATIN_CAPITAL_LETTER_C_WITH_CARON,
Method postAddIndividualAction
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function postAddIndividualAction(ServerRequestInterface $request): ResponseInterface
{
$tree = Validator::attributes($request)->tree();
$xref = Validator::parsedBody($request)->isXref()->string('xref');
$option = Validator::parsedBody($request)->string('option');
Method alphabet
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function alphabet(): array
{
return [
UTF8::CYRILLIC_CAPITAL_LETTER_A,
UTF8::CYRILLIC_CAPITAL_LETTER_BE,
Method all
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function all(bool $include_disabled = false): Collection
{
return Registry::cache()->array()->remember('all-modules', function (): Collection {
// Modules have a default status, order etc.
// We can override these from database settings.
Method createHeader
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createHeader(Tree $tree, string $encoding, bool $include_sub): string
{
// Force a ".ged" suffix
$filename = $tree->name();
Method handle
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(ServerRequestInterface $request): ResponseInterface
{
$tree = Validator::attributes($request)->tree();
$keep_media = Validator::parsedBody($request)->boolean('keep_media', false);
$word_wrapped_notes = Validator::parsedBody($request)->boolean('WORD_WRAPPED_NOTES', false);
Method handle
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(ServerRequestInterface $request): ResponseInterface
{
$tree = Validator::attributes($request)->tree();
$xref = Validator::attributes($request)->isXref()->string('xref');
$record = Registry::gedcomRecordFactory()->make($xref, $tree);
Method handle
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(ServerRequestInterface $request): ResponseInterface
{
$tree = Validator::attributes($request)->tree();
$xref = Validator::attributes($request)->isXref()->string('xref');
$family = Registry::familyFactory()->make($xref, $tree);
Method handle
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(ServerRequestInterface $request): ResponseInterface
{
$this->layout = 'layouts/administration';
$user_id = Validator::queryParams($request)->integer('user_id');
Method chartDistribution
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function chartDistribution(
string $chart_shows = 'world',
string $chart_type = '',
string $surname = ''
): string {
Method write
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function write(string $id, string $data): bool
{
$ip_address = Validator::attributes($this->request)->string('client-ip');
$user_id = (int) Auth::id();
$now = Registry::timestampFactory()->now();
Method columns
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function columns(): array
{
return [
new CensusColumnFullName($this, 'Name', 'Name'),
new CensusColumnSexMF($this, 'Sex', 'Sex'),
Method getTopNameAndCount
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getTopNameAndCount(array $surns): array
{
$max_name = 0;
$count_per = 0;
$top_name = '';