Showing 1,726 of 2,403 total issues
Method alphabet
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function alphabet(): array
{
return [
'A',
'B',
Method alphabet
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function alphabet(): array
{
return [
'A',
'B',
Method alphabet
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function alphabet(): array
{
return [
'A',
'B',
Method alphabet
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function alphabet(): array
{
return [
'A',
'B',
Method editBlockConfiguration
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function editBlockConfiguration(Tree $tree, int $block_id): string
{
$filter = $this->getBlockSetting($block_id, 'filter', self::LINK_ALL);
$controls = $this->getBlockSetting($block_id, 'controls', '1');
$start = $this->getBlockSetting($block_id, 'start', '0');
Method boot
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function boot(): void
{
$router_container = Registry::container()->get(RouterContainer::class);
$router = $router_container->getMap();
Method alphabet
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function alphabet(): array
{
return [
'A',
'B',
Method getAddIndividualAction
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAddIndividualAction(ServerRequestInterface $request): ResponseInterface
{
$tree = Validator::attributes($request)->tree();
$xref = Validator::queryParams($request)->isXref()->string('xref');
$individual = Registry::individualFactory()->make($xref, $tree);
Method getMapData
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getMapData(Individual $indi): object
{
$facts = $this->getPersonalFacts($indi);
$geojson = [
Method editBlockConfiguration
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function editBlockConfiguration(Tree $tree, int $block_id): string
{
$days = (int) $this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS);
$infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_INFO_STYLE);
$sortStyle = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT_STYLE);
Method metaDescription
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function metaDescription(Individual $individual): string
{
$meta_facts = [];
$birth_date = $individual->getBirthDate();
Method handle
has 31 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 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(ServerRequestInterface $request): ResponseInterface
{
$tree = Validator::attributes($request)->tree();
$data_fix = Validator::attributes($request)->string('data_fix', '');
$module = $this->module_service->findByName($data_fix);
Method updateDates
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function updateDates(string $xref, int $ged_id, string $gedrec): void
{
// Insert all new rows together
$rows = [];
Method handle
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(ServerRequestInterface $request): ResponseInterface
{
$tree = Validator::attributes($request)->tree();
$default_fields = array_fill_keys(self::DEFAULT_ADVANCED_FIELDS, '');
$fields = Validator::queryParams($request)->array('fields') ?: $default_fields;
Method columns
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function columns(): array
{
return [
new CensusColumnSurnameGivenNameInitial($this, 'Name', 'Name'),
new CensusColumnRelationToHeadEnglish($this, 'Relation', 'Relationship of each person to the head of the family'),
Method monthFirstChildQuery
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function monthFirstChildQuery(int $year1 = -1, int $year2 = -1): Builder
{
$first_child_subquery = DB::table('link')
->join('dates', static function (JoinClause $join): void {
$join
Method displayImage
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function displayImage(int $width, int $height, string $fit, array $image_attributes = []): string
{
if ($this->isExternal()) {
$src = $this->multimedia_file_refn;
$srcset = [];
Method starredName
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function starredName(string $textSpan, string $direction): string
{
// To avoid a TCPDF bug that mixes up the word order, insert those <u> and </u> tags
// only when page and span directions are identical.
if ($direction === strtoupper(I18N::direction())) {
Method registerTags
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function registerTags(ElementFactoryInterface $element_factory, bool $include_custom_tags): void
{
// Standard GEDCOM.
$element_factory->registerTags($this->gedcom551Tags());