@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * Return a menu item for this chart. |
58 | 58 | * |
59 | - * @return Menu|null |
|
59 | + * @return Menu |
|
60 | 60 | */ |
61 | 61 | public function getChartMenu(Individual $individual) { |
62 | 62 | $tree = $individual->getTree(); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * Return a menu item for this chart - for use in individual boxes. |
84 | 84 | * |
85 | - * @return Menu|null |
|
85 | + * @return Menu |
|
86 | 86 | */ |
87 | 87 | public function getBoxChartMenu(Individual $individual) { |
88 | 88 | return $this->getChartMenu($individual); |
@@ -611,8 +611,11 @@ discard block |
||
611 | 611 | <a href="admin_site_upgrade.php" class="error"> |
612 | 612 | <?php echo /* I18N: %s is a version number */ I18N::translate('Upgrade to webtrees %s.', Filter::escapeHtml($latest_version)); ?> |
613 | 613 | </a> |
614 | - <?php else: ?> |
|
615 | - <?php echo I18N::translate('This is the latest version of webtrees. No upgrade is available.'); ?> |
|
614 | + <?php else { |
|
615 | + : ?> |
|
616 | + <?php echo I18N::translate('This is the latest version of webtrees. No upgrade is available.'); |
|
617 | +} |
|
618 | +?> |
|
616 | 619 | <?php endif; ?> |
617 | 620 | </p> |
618 | 621 | <?php endif; ?> |
@@ -774,9 +777,12 @@ discard block |
||
774 | 777 | <?php echo I18N::number($changes[$tree->getTreeId()]); ?> |
775 | 778 | <span class="sr-only"><?php echo I18N::translate('Pending changes'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
776 | 779 | </a> |
777 | - <?php else: ?> |
|
780 | + <?php else { |
|
781 | + : ?> |
|
778 | 782 | - |
779 | - <?php endif; ?> |
|
783 | + <?php endif; |
|
784 | +} |
|
785 | +?> |
|
780 | 786 | </td> |
781 | 787 | <td class="text-right flip"> |
782 | 788 | <?php if ($individuals[$tree->getTreeId()]): ?> |
@@ -784,9 +790,12 @@ discard block |
||
784 | 790 | <?php echo I18N::number($individuals[$tree->getTreeId()]); ?> |
785 | 791 | <span class="sr-only"><?php echo I18N::translate('Individuals'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
786 | 792 | </a> |
787 | - <?php else: ?> |
|
793 | + <?php else { |
|
794 | + : ?> |
|
788 | 795 | - |
789 | - <?php endif; ?> |
|
796 | + <?php endif; |
|
797 | +} |
|
798 | +?> |
|
790 | 799 | </td> |
791 | 800 | <td class="text-right flip"> |
792 | 801 | <?php if ($families[$tree->getTreeId()]): ?> |
@@ -794,9 +803,12 @@ discard block |
||
794 | 803 | <?php echo I18N::number($families[$tree->getTreeId()]); ?> |
795 | 804 | <span class="sr-only"><?php echo I18N::translate('Families'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
796 | 805 | </a> |
797 | - <?php else: ?> |
|
806 | + <?php else { |
|
807 | + : ?> |
|
798 | 808 | - |
799 | - <?php endif; ?> |
|
809 | + <?php endif; |
|
810 | +} |
|
811 | +?> |
|
800 | 812 | </td> |
801 | 813 | <td class="text-right flip"> |
802 | 814 | <?php if ($sources[$tree->getTreeId()]): ?> |
@@ -804,9 +816,12 @@ discard block |
||
804 | 816 | <?php echo I18N::number($sources[$tree->getTreeId()]); ?> |
805 | 817 | <span class="sr-only"><?php echo I18N::translate('Sources'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
806 | 818 | </a> |
807 | - <?php else: ?> |
|
819 | + <?php else { |
|
820 | + : ?> |
|
808 | 821 | - |
809 | - <?php endif; ?> |
|
822 | + <?php endif; |
|
823 | +} |
|
824 | +?> |
|
810 | 825 | </td> |
811 | 826 | <td class="text-right flip"> |
812 | 827 | <?php if ($repositories[$tree->getTreeId()]): ?> |
@@ -814,9 +829,12 @@ discard block |
||
814 | 829 | <?php echo I18N::number($repositories[$tree->getTreeId()]); ?> |
815 | 830 | <span class="sr-only"><?php echo I18N::translate('Repositories'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
816 | 831 | </a> |
817 | - <?php else: ?> |
|
832 | + <?php else { |
|
833 | + : ?> |
|
818 | 834 | - |
819 | - <?php endif; ?> |
|
835 | + <?php endif; |
|
836 | +} |
|
837 | +?> |
|
820 | 838 | </td> |
821 | 839 | <td class="text-right flip"> |
822 | 840 | <?php if ($media[$tree->getTreeId()]): ?> |
@@ -824,9 +842,12 @@ discard block |
||
824 | 842 | <?php echo I18N::number($media[$tree->getTreeId()]); ?> |
825 | 843 | <span class="sr-only"><?php echo I18N::translate('Media objects'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
826 | 844 | </a> |
827 | - <?php else: ?> |
|
845 | + <?php else { |
|
846 | + : ?> |
|
828 | 847 | - |
829 | - <?php endif; ?> |
|
848 | + <?php endif; |
|
849 | +} |
|
850 | +?> |
|
830 | 851 | </td> |
831 | 852 | </tr> |
832 | 853 | <?php endforeach; ?> |
@@ -101,7 +101,8 @@ discard block |
||
101 | 101 | <?php if ($max_recursion == 0): ?> |
102 | 102 | <?php echo I18N::translate('Find the closest relationships') ?> |
103 | 103 | <input type="hidden" name="recursion" value="0"> |
104 | - <?php else: ?> |
|
104 | + <?php else { |
|
105 | + : ?> |
|
105 | 106 | <label> |
106 | 107 | <input type="radio" name="recursion" value="0" <?php echo $recursion == 0 ? 'checked' : '' ?>> |
107 | 108 | <?php echo I18N::translate('Find the closest relationships') ?> |
@@ -113,7 +114,9 @@ discard block |
||
113 | 114 | <?php echo I18N::translate('Find all possible relationships') ?> |
114 | 115 | <?php else: ?> |
115 | 116 | <?php echo I18N::translate('Find other relationships') ?> |
116 | - <?php endif; ?> |
|
117 | + <?php endif; |
|
118 | +} |
|
119 | +?> |
|
117 | 120 | </label> |
118 | 121 | <?php endif; ?> |
119 | 122 | </td> |
@@ -63,7 +63,7 @@ |
||
63 | 63 | while (list(, $next) = each($queue)) { |
64 | 64 | // For each family on the path |
65 | 65 | for ($n = count($next['path']) - 2; $n >= 1; $n -= 2) { |
66 | - $exclude = $next['exclude']; |
|
66 | + $exclude = $next['exclude']; |
|
67 | 67 | if (count($exclude) >= $recursion) { |
68 | 68 | continue; |
69 | 69 | } |