summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addmedia.php2
-rw-r--r--admin_media.php8
-rw-r--r--ancestry.php2
-rw-r--r--app/Auth.php2
-rw-r--r--app/Controller/ChartController.php2
-rw-r--r--app/Controller/HourglassController.php2
-rw-r--r--app/Controller/LifespanController.php2
-rw-r--r--app/Controller/PedigreeController.php2
-rw-r--r--app/I18N.php2
-rw-r--r--app/Individual.php2
-rw-r--r--app/Module/FamilyTreeStatisticsModule.php18
-rw-r--r--app/Query/QueryName.php1
-rw-r--r--app/Theme/BaseTheme.php4
-rw-r--r--edit_interface.php2
-rw-r--r--familybook.php2
-rw-r--r--hourglass.php2
-rw-r--r--includes/functions/functions_charts.php2
-rw-r--r--modules_v3/GEDFact_assistant/_CENS/census_3_find.php2
-rw-r--r--modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php20
-rw-r--r--pedigree.php14
20 files changed, 46 insertions, 47 deletions
diff --git a/addmedia.php b/addmedia.php
index 8a6dc4044b..33fd7491af 100644
--- a/addmedia.php
+++ b/addmedia.php
@@ -531,7 +531,7 @@ if (!$isExternal) {
} else {
echo '<input name="folder" type="hidden" value="', Filter::escapeHtml($folder), '">';
}
- echo '<p class="small text-muted">', I18N::translate('If you have a large number of media files, you can organize them into folders and subfolders.'), '</p>'; echo '</td></tr>';
+ echo '<p class="small text-muted">', I18N::translate('If you have a large number of media files, you can organize them into folders and subfolders.'), '</p>'; echo '</td></tr>';
} else {
echo '<input name="folder" type="hidden" value="">';
}
diff --git a/admin_media.php b/admin_media.php
index c5ebb40232..3006caaca0 100644
--- a/admin_media.php
+++ b/admin_media.php
@@ -521,12 +521,12 @@ function mediaObjectInfo(Media $media) {
'<div class="btn-group"><button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-pencil"></i> <span class="caret"></span></button><ul class="dropdown-menu" role="menu">' .
'<li><a href="#" onclick="window.open(\'addmedia.php?action=editmedia&amp;pid=' . $xref . '&ged=' . Filter::escapeJs($gedcom) . '\', \'_blank\', edit_window_specs);"><i class="fa fa-fw fa-pencil"></i> ' . I18N::translate('Edit') . '</a></li>' .
'<li><a href="#" onclick="return delete_media(\'' . I18N::translate('Are you sure you want to delete “%s”?', Filter::escapeJs(Filter::unescapeHtml($media->getFullName()))) . '\', \'' . $media->getXref() . '\', \'' . Filter::escapeJs($gedcom) . '\');"><i class="fa fa-fw fa-trash-o"></i> ' . I18N::translate('Delete') . '</a></li>' .
- '<li><a href="#" onclick="return ilinkitem(\'' . $media->getXref(). '\', \'person\', WT_GEDCOM)"><i class="fa fa-fw fa-link"></i> ' . I18N::translate('Link this media object to an individual') . '</a></li>' .
- '<li><a href="#" onclick="return ilinkitem(\'' . $media->getXref(). '\', \'family\', WT_GEDCOM)"><i class="fa fa-fw fa-link"></i> ' . I18N::translate('Link this media object to a family') . '</a></li>' .
- '<li><a href="#" onclick="return ilinkitem(\'' . $media->getXref(). '\', \'source\', WT_GEDCOM)"><i class="fa fa-fw fa-link"></i> ' . I18N::translate('Link this media object to a source') . '</a></li>';
+ '<li><a href="#" onclick="return ilinkitem(\'' . $media->getXref() . '\', \'person\', WT_GEDCOM)"><i class="fa fa-fw fa-link"></i> ' . I18N::translate('Link this media object to an individual') . '</a></li>' .
+ '<li><a href="#" onclick="return ilinkitem(\'' . $media->getXref() . '\', \'family\', WT_GEDCOM)"><i class="fa fa-fw fa-link"></i> ' . I18N::translate('Link this media object to a family') . '</a></li>' .
+ '<li><a href="#" onclick="return ilinkitem(\'' . $media->getXref() . '\', \'source\', WT_GEDCOM)"><i class="fa fa-fw fa-link"></i> ' . I18N::translate('Link this media object to a source') . '</a></li>';
if (Module::getModuleByName('GEDFact_assistant')) {
- $html .= '<li><a href="#" onclick="return ilinkitem(\'' . $media->getXref(). '\', \'manage\', WT_GEDCOM)"><i class="fa fa-fw fa-link"></i> ' . I18N::translate('Manage links') . '</a></li>';
+ $html .= '<li><a href="#" onclick="return ilinkitem(\'' . $media->getXref() . '\', \'manage\', WT_GEDCOM)"><i class="fa fa-fw fa-link"></i> ' . I18N::translate('Manage links') . '</a></li>';
}
$html .=
diff --git a/ancestry.php b/ancestry.php
index d939445c5e..3c553cd780 100644
--- a/ancestry.php
+++ b/ancestry.php
@@ -109,7 +109,7 @@ $controller
<?php echo '<label>', I18N::translate('Show details'), '</label>'; ?>
</td>
<td class="optionbox">
- <?php echo checkbox('show_full', $controller->showFull());?>
+ <?php echo checkbox('show_full', $controller->showFull()); ?>
</td>
</tr>
</tbody>
diff --git a/app/Auth.php b/app/Auth.php
index 45c43a9826..45f3afc791 100644
--- a/app/Auth.php
+++ b/app/Auth.php
@@ -123,7 +123,7 @@ class Auth {
* @param Tree $tree
* @param User|null $user
*
- * @return boolean
+ * @return integer
*/
public static function accessLevel(Tree $tree, User $user = null) {
if ($user === null) {
diff --git a/app/Controller/ChartController.php b/app/Controller/ChartController.php
index 9f33eae89c..028d95dffd 100644
--- a/app/Controller/ChartController.php
+++ b/app/Controller/ChartController.php
@@ -125,7 +125,7 @@ class ChartController extends PageController {
/**
* Function boxDimensions
- * @return personbox|\stdClass
+ * @return \stdClass
*/
public function getBoxDimensions() {
return $this->box;
diff --git a/app/Controller/HourglassController.php b/app/Controller/HourglassController.php
index bfebecafb7..f027e1047f 100644
--- a/app/Controller/HourglassController.php
+++ b/app/Controller/HourglassController.php
@@ -106,7 +106,7 @@ class HourglassController extends ChartController {
//-- recursively get the father’s family
$this->printPersonPedigree($person, $count + 1);
echo '</td></tr>';
- echo '<tr><td>' . $this->printEmptyBox() . '</td>';
+ echo '<tr><td>' . $this->printEmptyBox() . '</td>';
echo '<td>';
//-- recursively get the father’s family
$this->printPersonPedigree($person, $count + 1);
diff --git a/app/Controller/LifespanController.php b/app/Controller/LifespanController.php
index e3d30f55d6..a140491573 100644
--- a/app/Controller/LifespanController.php
+++ b/app/Controller/LifespanController.php
@@ -427,7 +427,7 @@ class LifespanController extends PageController {
}
sort_facts($unparsedEvents);
- $eventinformation = Array();
+ $eventinformation = array();
foreach ($unparsedEvents as $val) {
$date = $val->getDate();
if (!empty($date)) {
diff --git a/app/Controller/PedigreeController.php b/app/Controller/PedigreeController.php
index ab5d252adc..bb3924e201 100644
--- a/app/Controller/PedigreeController.php
+++ b/app/Controller/PedigreeController.php
@@ -29,7 +29,7 @@ class PedigreeController extends ChartController {
const LANDSCAPE = 1;
const OLDEST_AT_TOP = 2;
const OLDEST_AT_BOTTOM = 3;
- CONST MENU_ITEM = '<a href="pedigree.php?rootid=%s&amp;show_full=%s&amp;PEDIGREE_GENERATIONS=%s&amp;orientation=%s" class="%s noprint">%s</a>';
+ const MENU_ITEM = '<a href="pedigree.php?rootid=%s&amp;show_full=%s&amp;PEDIGREE_GENERATIONS=%s&amp;orientation=%s" class="%s noprint">%s</a>';
/**
* Next and previous generation arrow size
diff --git a/app/I18N.php b/app/I18N.php
index 56db77f3a2..f096a9150a 100644
--- a/app/I18N.php
+++ b/app/I18N.php
@@ -151,7 +151,7 @@ class I18N {
}
}
- File::mkdir( WT_DATA_DIR . 'cache');
+ File::mkdir(WT_DATA_DIR . 'cache');
$cache_file = WT_DATA_DIR . 'cache/language-' . self::$locale->languageTag() . '-cache.php';
if (file_exists($cache_file)) {
$filemtime = filemtime($cache_file);
diff --git a/app/Individual.php b/app/Individual.php
index 7a7befca06..173b48b75d 100644
--- a/app/Individual.php
+++ b/app/Individual.php
@@ -59,7 +59,7 @@ class Individual extends GedcomRecord {
* Typically when we load families and their members.
*
* @param Tree $tree
- * @param array $xrefs
+ * @param string[] $xrefs
*/
public static function load(Tree $tree, array $xrefs) {
$sql = '';
diff --git a/app/Module/FamilyTreeStatisticsModule.php b/app/Module/FamilyTreeStatisticsModule.php
index be34e44207..7572990da5 100644
--- a/app/Module/FamilyTreeStatisticsModule.php
+++ b/app/Module/FamilyTreeStatisticsModule.php
@@ -85,30 +85,30 @@ class FamilyTreeStatisticsModule extends Module implements ModuleBlockInterface
$content .= '<div class="stat-table1">';
if ($stat_indi) {
- $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Individuals') . '</div><div class="facts_value stats_value stat-cell"><a href="' . "indilist.php?surname_sublist=no&amp;ged=" . $WT_TREE->getNameUrl() . '">' . $stats->totalIndividuals() . '</a></div></div>';
- $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Males') . '</div><div class="facts_value stats_value stat-cell">' . $stats->totalSexMales() . '<br>' . $stats->totalSexMalesPercentage() . '</a></div></div>';
- $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Females') . '</div><div class="facts_value stats_value stat-cell">' . $stats->totalSexFemales() . '<br>' . $stats->totalSexFemalesPercentage() . '</a></div></div>';
+ $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Individuals') . '</div><div class="facts_value stats_value stat-cell"><a href="' . "indilist.php?surname_sublist=no&amp;ged=" . $WT_TREE->getNameUrl() . '">' . $stats->totalIndividuals() . '</a></div></div>';
+ $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Males') . '</div><div class="facts_value stats_value stat-cell">' . $stats->totalSexMales() . '<br>' . $stats->totalSexMalesPercentage() . '</a></div></div>';
+ $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Females') . '</div><div class="facts_value stats_value stat-cell">' . $stats->totalSexFemales() . '<br>' . $stats->totalSexFemalesPercentage() . '</a></div></div>';
}
if ($stat_surname) {
$content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Total surnames') . '</div><div class="facts_value stats_value stat-cell"><a href="indilist.php?show_all=yes&amp;surname_sublist=yes&amp;ged=' . $WT_TREE->getNameUrl() . '">' . $stats->totalSurnames() . '</a></div></div>';
}
if ($stat_fam) {
- $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Families') . '</div><div class="facts_value stats_value stat-cell"><a href="famlist.php?ged=' . $WT_TREE->getNameUrl() . '">' . $stats->totalFamilies() . '</a></div></div>';
+ $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Families') . '</div><div class="facts_value stats_value stat-cell"><a href="famlist.php?ged=' . $WT_TREE->getNameUrl() . '">' . $stats->totalFamilies() . '</a></div></div>';
}
if ($stat_sour) {
- $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Sources') . '</div><div class="facts_value stats_value stat-cell"><a href="sourcelist.php?ged=' . $WT_TREE->getNameUrl() . '">' . $stats->totalSources() . '</a></div></div>';
+ $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Sources') . '</div><div class="facts_value stats_value stat-cell"><a href="sourcelist.php?ged=' . $WT_TREE->getNameUrl() . '">' . $stats->totalSources() . '</a></div></div>';
}
if ($stat_media) {
- $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Media objects') . '</div><div class="facts_value stats_value stat-cell"><a href="medialist.php?ged=' . $WT_TREE->getNameUrl() . '">' . $stats->totalMedia() . '</a></div></div>';
+ $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Media objects') . '</div><div class="facts_value stats_value stat-cell"><a href="medialist.php?ged=' . $WT_TREE->getNameUrl() . '">' . $stats->totalMedia() . '</a></div></div>';
}
if ($stat_repo) {
- $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Repositories') . '</div><div class="facts_value stats_value stat-cell"><a href="repolist.php?ged=' . $WT_TREE->getNameUrl() . '">' . $stats->totalRepositories() . '</a></div></div>';
+ $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Repositories') . '</div><div class="facts_value stats_value stat-cell"><a href="repolist.php?ged=' . $WT_TREE->getNameUrl() . '">' . $stats->totalRepositories() . '</a></div></div>';
}
if ($stat_events) {
- $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Total events') . '</div><div class="facts_value stats_value stat-cell">' . $stats->totalEvents() . '</div></div>';
+ $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Total events') . '</div><div class="facts_value stats_value stat-cell">' . $stats->totalEvents() . '</div></div>';
}
if ($stat_users) {
- $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Total users') . '</div><div class="facts_value stats_value stat-cell">';
+ $content .= '<div class="stat-row"><div class="facts_label stat-cell">' . I18N::translate('Total users') . '</div><div class="facts_value stats_value stat-cell">';
if (Auth::isManager($WT_TREE)) {
$content .= '<a href="admin_users.php">' . $stats->totalUsers() . '</a>';
} else {
diff --git a/app/Query/QueryName.php b/app/Query/QueryName.php
index 73a463c6a7..d5774066bb 100644
--- a/app/Query/QueryName.php
+++ b/app/Query/QueryName.php
@@ -311,7 +311,6 @@ class QueryName {
* @param string $salpha if set, only consider surnames starting with this letter
* @param boolean $marnm if set, include married names
* @param boolean $fams if set, only consider individuals with FAMS records
- * @param integer $ged_id only consider individuals from this tree
*
* @return integer[]
*/
diff --git a/app/Theme/BaseTheme.php b/app/Theme/BaseTheme.php
index 665a3f2cc7..64cb318572 100644
--- a/app/Theme/BaseTheme.php
+++ b/app/Theme/BaseTheme.php
@@ -1314,7 +1314,7 @@ abstract class BaseTheme {
/**
* Create a menu to show lists of individuals, families, sources, etc.
*
- * @return Menu|null
+ * @return Menu
*/
protected function menuLists() {
$menu = new Menu(I18N::translate('Lists'), 'indilist.php?' . $this->tree_url, 'menu-list');
@@ -1518,7 +1518,7 @@ abstract class BaseTheme {
/**
* A link to the user's personal home page.
*
- * @return Menu|null
+ * @return Menu
*/
protected function menuMyPage()
{
diff --git a/edit_interface.php b/edit_interface.php
index 466ad70ea0..758859862d 100644
--- a/edit_interface.php
+++ b/edit_interface.php
@@ -2689,7 +2689,7 @@ function print_indi_form($nextaction, Individual $person = null, Family $family
add_simple_tag('2 _MARNM ' . $value);
add_simple_tag('2 _MARNM_SURN ' . $marnm_surn);
} else {
- add_simple_tag('2 ' . $tag . ' ' . $value, '', GedcomTag::getLabel('NAME:' . $tag, $person));
+ add_simple_tag('2 ' . $tag . ' ' . $value, '', GedcomTag::getLabel('NAME:' . $tag, $person));
}
}
}
diff --git a/familybook.php b/familybook.php
index 11f2e4cf8e..1dc3978206 100644
--- a/familybook.php
+++ b/familybook.php
@@ -51,7 +51,7 @@ $controller
<?php echo I18N::translate('Show details'); ?>
</td>
<td class="optionbox">
- <?php echo two_state_checkbox("show_full",$controller->showFull());?>
+ <?php echo two_state_checkbox("show_full", $controller->showFull()); ?>
</td>
<td rowspan="3" class="topbottombar vmiddle">
<input type="submit" value="<?php echo /* I18N: Submit button, on a form */ I18N::translate('View'); ?>">
diff --git a/hourglass.php b/hourglass.php
index ece35c516b..bc0e74c02e 100644
--- a/hourglass.php
+++ b/hourglass.php
@@ -52,7 +52,7 @@ $controller
<?php echo I18N::translate('Show details'); ?>
</td>
<td class="optionbox">
- <?php echo two_state_checkbox("show_full",$controller->showFull());?>
+ <?php echo two_state_checkbox("show_full", $controller->showFull()); ?>
</td>
<td rowspan="3" class="topbottombar vmiddle">
<input type="submit" value="<?php echo I18N::translate('View'); ?>">
diff --git a/includes/functions/functions_charts.php b/includes/functions/functions_charts.php
index 278271585e..05b8195518 100644
--- a/includes/functions/functions_charts.php
+++ b/includes/functions/functions_charts.php
@@ -352,7 +352,7 @@ function print_family_children(Family $family, $childid = '', $sosa = 0, $label
//find out how many cousins there are to establish vertical line on second families
$fchildren = $famids[$f]->getChildren();
$kids = count($fchildren);
- $Pheader = ($bheight-1) * $kids;
+ $Pheader = ($bheight - 1) * $kids;
$PBadj = 6; // default
if ($show_cousins > 0) {
if ($kids) {
diff --git a/modules_v3/GEDFact_assistant/_CENS/census_3_find.php b/modules_v3/GEDFact_assistant/_CENS/census_3_find.php
index 334371ac1f..2dd5ccb428 100644
--- a/modules_v3/GEDFact_assistant/_CENS/census_3_find.php
+++ b/modules_v3/GEDFact_assistant/_CENS/census_3_find.php
@@ -115,7 +115,7 @@ if ($action == "filter") {
if (!isset($marrdate)) { $marrdate = ""; }
//-- Get Children’s Name, DOB, DOD --------------------------
- $chBLDarray = Array();
+ $chBLDarray = array();
if (isset($children)) {
foreach ($children as $key=>$child) {
$chnam = $child->getAllNames();
diff --git a/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php b/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php
index 4893f1d787..d805708867 100644
--- a/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php
+++ b/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php
@@ -82,7 +82,7 @@ namespace Fisharebest\Webtrees;
$marrdate = $family->getMarriageDate();
//-- Get Parents Children’s Name, DOB, DOD --------------------------
- $chBLDarray = Array();
+ $chBLDarray = array();
foreach ($family->getChildren() as $child) {
$chnam = $child->getAllNames();
$chfulln = strip_tags($chnam[0]['full']); // Child’s Full Name
@@ -250,7 +250,7 @@ namespace Fisharebest\Webtrees;
//-- Parent’s Children’s Details --------------------------------------
foreach ($family->getChildren() as $child) {
// Get Child’s Children’s Name DOB DOD ----
- $chBLDarray = Array();
+ $chBLDarray = array();
foreach ($child->getSpouseFamilies() as $childfamily) {
$chchildren = $childfamily->getChildren();
foreach ($chchildren as $chchild) {
@@ -338,7 +338,7 @@ namespace Fisharebest\Webtrees;
foreach ($person->getChildStepFamilies() as $family) {
$marrdate = $family->getMarriageDate();
//-- Get Children’s Name, DOB, DOD --------------------------
- $chBLDarray = Array();
+ $chBLDarray = array();
foreach ($family->getChildren() as $child) {
$chnam = $child->getAllNames();
$chfulln = strip_tags($chnam[0]['full']); // Child’s Full Name
@@ -520,7 +520,7 @@ namespace Fisharebest\Webtrees;
foreach ($family->getChildren() as $child) {
// Get Child’s Children
- $chBLDarray = Array();
+ $chBLDarray = array();
foreach ($child->getSpouseFamilies() as $childfamily) {
$chchildren = $childfamily->getChildren();
foreach ($chchildren as $chchild) {
@@ -614,7 +614,7 @@ namespace Fisharebest\Webtrees;
$marrdate = $family->getMarriageDate();
//-- Get Children’s Name, DOB, DOD --------------------------
- $chBLDarray = Array();
+ $chBLDarray = array();
foreach ($family->getChildren() as $child) {
$chnam = $child->getAllNames();
$chfulln = strip_tags($chnam[0]['full']); // Child’s Full Name
@@ -814,7 +814,7 @@ namespace Fisharebest\Webtrees;
}
// Get Child’s Children
- $chBLDarray = Array();
+ $chBLDarray = array();
foreach ($child->getSpouseFamilies() as $childfamily) {
$chchildren = $childfamily->getChildren();
foreach ($chchildren as $chchild) {
@@ -959,7 +959,7 @@ function print_pedigree_person_nav_cens($pid, $currpid, $censyear) {
// Get Parent Children’s Name, DOB, DOD
$marrdate = $family->getMarriageDate();
if ($children) {
- $chBLDarray = Array();
+ $chBLDarray = array();
foreach ($children as $child) {
$chnam = $child->getAllNames();
$chfulln = strip_tags($chnam[0]['full']);
@@ -1112,7 +1112,7 @@ function print_pedigree_person_nav_cens($pid, $currpid, $censyear) {
// Get StepParent’s Children’s Name, DOB, DOD
if (isset($children)) {
- $chBLDarray = Array();
+ $chBLDarray = array();
foreach ($children as $child) {
$chnam = $child->getAllNames();
$chfulln = strip_tags($chnam[0]['full']);
@@ -1269,7 +1269,7 @@ function print_pedigree_person_nav_cens($pid, $currpid, $censyear) {
//-- Get Spouse’s Children’s Name, DOB, DOD --------------------------
$marrdate = $family->getMarriageDate();
if (isset($children)) {
- $chBLDarray = Array();
+ $chBLDarray = array();
foreach ($children as $child) {
$chnam = $child->getAllNames();
$chfulln = strip_tags($chnam[0]['full']); // Child’s Full Name
@@ -1371,7 +1371,7 @@ function print_pedigree_person_nav_cens($pid, $currpid, $censyear) {
}
// Child’s Children
- $chBLDarray = Array();
+ $chBLDarray = array();
foreach ($child->getSpouseFamilies() as $childfamily) {
$chchildren = $childfamily->getChildren();
foreach ($chchildren as $chchild) {
diff --git a/pedigree.php b/pedigree.php
index 4f5c815b02..c3a08ce02c 100644
--- a/pedigree.php
+++ b/pedigree.php
@@ -64,7 +64,7 @@ $controller
y1 = Math.floor(y1);
x2 = Math.floor(x2);
y2 = Math.floor(y2);
- if (' . json_encode($controller->orientation < $controller::OLDEST_AT_TOP ) . ') {
+ if (' . json_encode($controller->orientation < $controller::OLDEST_AT_TOP) . ') {
context.moveTo(x1, y1);
context.lineTo(x2, y1);
context.lineTo(x2, y2);
@@ -88,7 +88,7 @@ $controller
p1 = jQuery("#sosa_" + (i+1));
// change line y position if within 10% of box top/bottom
addOffset = boxHeight / (p1.position().top - p0.position().top) > 0.9 ? extraOffsetY: 0;
- if (' . json_encode(I18N::direction() === "rtl") . ') {
+ if (' . json_encode(I18N::direction() === "rtl") . ') {
drawLines(
ctx,
p0.position().left + p0.width(),
@@ -180,7 +180,7 @@ $controller
<?php echo select_edit_control('orientation', array(0 => I18N::translate('Portrait'), 1 => I18N::translate('Landscape'), 2 => I18N::translate('Oldest at top'), 3 => I18N::translate('Oldest at bottom')), null, $controller->orientation); ?>
</td>
<td class="optionbox center">
- <?php echo two_state_checkbox("show_full", $controller->showFull());?>
+ <?php echo two_state_checkbox("show_full", $controller->showFull()); ?>
</td>
</tr>
</table>
@@ -201,22 +201,22 @@ echo '<div id="pedigree_chart" class="layout', $controller->orientation, '">';
foreach ($controller->nodes as $i => $node) {
// -- draw the box
- printf('<div id="sosa_%s" class="shadow" style="%s:%spx; top:%spx">', $i+1, $posn, $node["x"], $node["y"]);
+ printf('<div id="sosa_%s" class="shadow" style="%s:%spx; top:%spx">', $i + 1, $posn, $node["x"], $node["y"]);
if ($controller->orientation === $controller::OLDEST_AT_TOP) {
if ($i >= $lastgenStart) {
echo $controller->gotoPreviousGen($i);
}
} else {
- if(!$i) {
+ if (!$i) {
echo $controller->get_menu();
}
}
- print_pedigree_person( $controller->nodes[$i]['indi'], $controller->showFull());
+ print_pedigree_person($controller->nodes[$i]['indi'], $controller->showFull());
if ($controller->orientation === $controller::OLDEST_AT_TOP) {
- if(!$i) {
+ if (!$i) {
echo $controller->get_menu();
}
} else {