summaryrefslogtreecommitdiff
path: root/app/Functions
diff options
context:
space:
mode:
Diffstat (limited to 'app/Functions')
-rw-r--r--app/Functions/Functions.php10
-rw-r--r--app/Functions/FunctionsCharts.php6
-rw-r--r--app/Functions/FunctionsEdit.php4
-rw-r--r--app/Functions/FunctionsExport.php2
-rw-r--r--app/Functions/FunctionsPrint.php8
-rw-r--r--app/Functions/FunctionsPrintLists.php14
6 files changed, 22 insertions, 22 deletions
diff --git a/app/Functions/Functions.php b/app/Functions/Functions.php
index 1270a27f9d..a98f8efe9a 100644
--- a/app/Functions/Functions.php
+++ b/app/Functions/Functions.php
@@ -297,7 +297,7 @@ class Functions {
$sibling_codes = ['M' => 'bro', 'F' => 'sis', 'U' => 'sib'];
// Only examine each individual once
- $visited= [
+ $visited = [
$individual1->getXref() => true,
];
@@ -320,7 +320,7 @@ class Functions {
$visited[$family->getXref()] = true;
foreach ($family->getSpouses(Auth::PRIV_HIDE) as $spouse) {
if (!isset($visited[$spouse->getXref()])) {
- $new_path = $path;
+ $new_path = $path;
$new_path['path'][] = $family;
$new_path['path'][] = $spouse;
$new_path['relations'][] = $parent_codes[$spouse->getSex()];
@@ -334,7 +334,7 @@ class Functions {
}
foreach ($family->getChildren(Auth::PRIV_HIDE) as $child) {
if (!isset($visited[$child->getXref()])) {
- $new_path = $path;
+ $new_path = $path;
$new_path['path'][] = $family;
$new_path['path'][] = $child;
$new_path['relations'][] = $sibling_codes[$child->getSex()];
@@ -353,7 +353,7 @@ class Functions {
$visited[$family->getXref()] = true;
foreach ($family->getSpouses(Auth::PRIV_HIDE) as $spouse) {
if (!isset($visited[$spouse->getXref()])) {
- $new_path = $path;
+ $new_path = $path;
$new_path['path'][] = $family;
$new_path['path'][] = $spouse;
$new_path['relations'][] = $spouse_codes[$spouse->getSex()];
@@ -367,7 +367,7 @@ class Functions {
}
foreach ($family->getChildren(Auth::PRIV_HIDE) as $child) {
if (!isset($visited[$child->getXref()])) {
- $new_path = $path;
+ $new_path = $path;
$new_path['path'][] = $family;
$new_path['path'][] = $child;
$new_path['relations'][] = $child_codes[$child->getSex()];
diff --git a/app/Functions/FunctionsCharts.php b/app/Functions/FunctionsCharts.php
index beda2645f5..1e6ad0c0df 100644
--- a/app/Functions/FunctionsCharts.php
+++ b/app/Functions/FunctionsCharts.php
@@ -112,7 +112,7 @@ class FunctionsCharts {
$hfam = $husb->getPrimaryChildFamily();
if ($hfam) {
// remove the|| test for $sosa
- echo '<td rowspan="2"><img src="' . Theme::theme()->parameter('image-hline') . '"></td><td rowspan="2"><img src="' . Theme::theme()->parameter('image-vline') . '" width="3" height="' . ($pbheight -14 ) . '"></td>';
+ echo '<td rowspan="2"><img src="' . Theme::theme()->parameter('image-hline') . '"></td><td rowspan="2"><img src="' . Theme::theme()->parameter('image-vline') . '" width="3" height="' . ($pbheight - 14 ) . '"></td>';
echo '<td><img class="linea1 lined1" src="' . Theme::theme()->parameter('image-hline') . '"></td><td>';
// husband’s father
if ($hfam && $hfam->getHusband()) {
@@ -202,7 +202,7 @@ class FunctionsCharts {
// wife’s parents
$hfam = $wife->getPrimaryChildFamily();
if ($hfam) {
- echo '<td rowspan="2"><img src="' . Theme::theme()->parameter('image-hline') . '"></td><td rowspan="2"><img src="' . Theme::theme()->parameter('image-vline') . '" width="3" height="' . ($pbheight -14 ) . '"></td>';
+ echo '<td rowspan="2"><img src="' . Theme::theme()->parameter('image-hline') . '"></td><td rowspan="2"><img src="' . Theme::theme()->parameter('image-vline') . '" width="3" height="' . ($pbheight - 14 ) . '"></td>';
echo '<td><img class="linea3 lined3" src="' . Theme::theme()->parameter('image-hline') . '"></td><td>';
// wife’s father
if ($hfam && $hfam->getHusband()) {
@@ -460,7 +460,7 @@ class FunctionsCharts {
if ($kids) {
echo '<table cellspacing="0" cellpadding="0" border="0" ><tr>';
if ($kids > 1) {
- echo '<td rowspan="', $kids, '"><img width="3px" height="', (($bheight) * ($kids -1)), 'px" src="', Theme::theme()->parameter('image-vline'), '"></td>';
+ echo '<td rowspan="', $kids, '"><img width="3px" height="', (($bheight) * ($kids - 1)), 'px" src="', Theme::theme()->parameter('image-vline'), '"></td>';
}
$ctkids = count($fchildren);
$i = 1;
diff --git a/app/Functions/FunctionsEdit.php b/app/Functions/FunctionsEdit.php
index ffdb9fbe3f..fb111c1d99 100644
--- a/app/Functions/FunctionsEdit.php
+++ b/app/Functions/FunctionsEdit.php
@@ -679,7 +679,7 @@ class FunctionsEdit {
/** @var CensusAssistantModule $census_assistant */
$census_assistant = Module::getModuleByName('GEDFact_assistant');
- $record = Individual::getInstance($xref, $WT_TREE);
+ $record = Individual::getInstance($xref, $WT_TREE);
if ($census_assistant !== null && $record instanceof Individual) {
$html .= $census_assistant->createCensusAssistant($record);
}
@@ -712,7 +712,7 @@ class FunctionsEdit {
$html .= self::inputAddonHelp('DATE');
$html .= '</div>';
$html .= '<div id="caldiv' . $id . '" style="position:absolute;visibility:hidden;background-color:white;z-index:1000"></div>';
- $html .= '<p class="text-muted">' . (new Date($value))->display() . '</p>';
+ $html .= '<p class="text-muted">' . (new Date($value))->display() . '</p>';
} elseif ($fact === 'FAMC') {
$html .=
'<div class="input-group">' .
diff --git a/app/Functions/FunctionsExport.php b/app/Functions/FunctionsExport.php
index 481211fe37..30188f7c6e 100644
--- a/app/Functions/FunctionsExport.php
+++ b/app/Functions/FunctionsExport.php
@@ -109,7 +109,7 @@ class FunctionsExport {
// Preserve some values from the original header
$record = GedcomRecord::getInstance('HEAD', $tree);
- $fact = $record->getFirstFact('LANG');
+ $fact = $record->getFirstFact('LANG');
if ($fact instanceof Fact) {
$LANG = $fact->getValue();
}
diff --git a/app/Functions/FunctionsPrint.php b/app/Functions/FunctionsPrint.php
index 541813b962..1825d37f53 100644
--- a/app/Functions/FunctionsPrint.php
+++ b/app/Functions/FunctionsPrint.php
@@ -74,7 +74,7 @@ class FunctionsPrint {
if (preg_match('/^0 @(' . WT_REGEX_XREF . ')@ NOTE/', $nrec, $match)) {
$note = Note::getInstance($match[1], $WT_TREE);
$label = 'SHARED_NOTE';
- $html = Filter::formatText($note->getNote(), $WT_TREE);
+ $html = Filter::formatText($note->getNote(), $WT_TREE);
} else {
$note = null;
$label = 'NOTE';
@@ -177,7 +177,7 @@ class FunctionsPrint {
*/
public static function helpLink($help_topic) {
$title = '';
- $text = '';
+ $text = '';
require 'help_text.php';
return
@@ -559,9 +559,9 @@ class FunctionsPrint {
$quickfacts = preg_split('/[, ;:]+/', $WT_TREE->getPreference('REPO_FACTS_QUICK'), -1, PREG_SPLIT_NO_EMPTY);
break;
case 'OBJE':
- $addfacts = ['NOTE'];
+ $addfacts = ['NOTE'];
$uniquefacts = ['_PRIM'];
- $quickfacts = [];
+ $quickfacts = [];
break;
default:
return;
diff --git a/app/Functions/FunctionsPrintLists.php b/app/Functions/FunctionsPrintLists.php
index b296ba1257..782811085b 100644
--- a/app/Functions/FunctionsPrintLists.php
+++ b/app/Functions/FunctionsPrintLists.php
@@ -320,8 +320,8 @@ class FunctionsPrintLists {
$title = 'title="' . strip_tags(GedcomTag::getLabel($name['type'], $individual)) . '"';
}
if ($num == $individual->getPrimaryName()) {
- $class = ' class="name2"';
- $sex_image = $individual->getSexImage();
+ $class = ' class="name2"';
+ $sex_image = $individual->getSexImage();
} else {
$class = '';
$sex_image = '';
@@ -740,8 +740,8 @@ class FunctionsPrintLists {
$title = 'title="' . strip_tags(GedcomTag::getLabel($name['type'], $husb)) . '"';
}
if ($num == $husb->getPrimaryName()) {
- $class = ' class="name2"';
- $sex_image = $husb->getSexImage();
+ $class = ' class="name2"';
+ $sex_image = $husb->getSexImage();
} else {
$class = '';
$sex_image = '';
@@ -783,8 +783,8 @@ class FunctionsPrintLists {
$title = 'title="' . strip_tags(GedcomTag::getLabel($name['type'], $wife)) . '"';
}
if ($num == $wife->getPrimaryName()) {
- $class = ' class="name2"';
- $sex_image = $wife->getSexImage();
+ $class = ' class="name2"';
+ $sex_image = $wife->getSexImage();
} else {
$class = '';
$sex_image = '';
@@ -1045,7 +1045,7 @@ class FunctionsPrintLists {
"SELECT CONCAT(l_to, '@', l_file), COUNT(*) FROM `##sources` JOIN `##link` ON l_from = s_id AND l_file = s_file AND l_type = 'NOTE' GROUP BY l_to, l_file"
)->fetchAssoc();
- $html = '';
+ $html = '';
$html .= '<table ' . Datatables::noteTableAttributes() . '><thead><tr>';
$html .= '<th>' . I18N::translate('Title') . '</th>';
$html .= '<th>' . I18N::translate('Individuals') . '</th>';