@@ -181,6 +181,7 @@ |
||
181 | 181 | /** |
182 | 182 | * A list of GEDCOM relationships (e.g. for an edit control). |
183 | 183 | * |
184 | + * @param string $relationship |
|
184 | 185 | * @return string[] |
185 | 186 | */ |
186 | 187 | public static function optionsRelationships($relationship) { |
@@ -109,7 +109,7 @@ |
||
109 | 109 | </option> |
110 | 110 | </select> |
111 | 111 | </td> |
112 | - <?php else: ?> |
|
112 | + <?php else : ?> |
|
113 | 113 | <td class="descriptionbox wrap"></td> |
114 | 114 | <td class="optionbox wrap"></td> |
115 | 115 | <?php endif ?> |
@@ -109,7 +109,8 @@ discard block |
||
109 | 109 | </option> |
110 | 110 | </select> |
111 | 111 | </td> |
112 | - <?php else: ?> |
|
112 | + <?php else { |
|
113 | + : ?> |
|
113 | 114 | <td class="descriptionbox wrap"></td> |
114 | 115 | <td class="optionbox wrap"></td> |
115 | 116 | <?php endif ?> |
@@ -133,6 +134,7 @@ discard block |
||
133 | 134 | <?php |
134 | 135 | foreach (['10', '20', '30', '40', '50', '75', '100', '125', '150', '200'] as $selectEntry) { |
135 | 136 | echo '<option value="', $selectEntry, '" '; |
137 | +} |
|
136 | 138 | if ($selectEntry == $max) { |
137 | 139 | echo 'selected'; |
138 | 140 | } |
@@ -770,13 +770,15 @@ |
||
770 | 770 | <p> |
771 | 771 | <?php if ($ucnt): ?> |
772 | 772 | <input type="submit" value="<?= I18N::translate('delete') ?>"> |
773 | - <?php else: ?> |
|
773 | + <?php else { |
|
774 | + : ?> |
|
774 | 775 | <?= I18N::translate('Nothing found to cleanup') ?> |
775 | 776 | <?php endif ?> |
776 | 777 | </p> |
777 | 778 | </form> |
778 | 779 | <?php |
779 | 780 | break; |
781 | +} |
|
780 | 782 | |
781 | 783 | case 'cleanup2': |
782 | 784 | foreach (User::all() as $user) { |
@@ -154,7 +154,8 @@ discard block |
||
154 | 154 | <input type="text" id="value<?= $i ?>" name="values[<?= $i ?>]" value="<?= Filter::escapeHtml($controller->getValue($i)) ?>"<?= substr($controller->getField($i), -4) == 'PLAC' ? 'data-autocomplete-type="PLAC"' : '' ?>> |
155 | 155 | <?php if (preg_match('/^NAME:/', $currentFieldSearch) > 0) { ?> |
156 | 156 | <select name="fields[<?= $i ?>]"> |
157 | - <option value="<?= $currentField ?>:EXACT" <?php if (preg_match('/:EXACT$/', $currentFieldSearch) > 0) echo 'selected' ?>><?= I18N::translate('Exact') ?></option> |
|
157 | + <option value="<?= $currentField ?>:EXACT" <?php if (preg_match('/:EXACT$/', $currentFieldSearch) > 0) { |
|
158 | + echo 'selected' ?>><?= I18N::translate('Exact') ?></option> |
|
158 | 159 | <option value="<?= $currentField ?>:BEGINS" <?php if (preg_match('/:BEGINS$/', $currentFieldSearch) > 0) echo 'selected' ?>><?= I18N::translate('Begins with') ?></option> |
159 | 160 | <option value="<?= $currentField ?>:CONTAINS" <?php if (preg_match('/:CONTAINS$/', $currentFieldSearch) > 0) echo 'selected' ?>><?= I18N::translate('Contains') ?></option> |
160 | 161 | <option value="<?= $currentField ?>:SDX" <?php if (preg_match('/:SDX$/', $currentFieldSearch) > 0) echo 'selected' ?>><?= I18N::translate('Sounds like') ?></option> |
@@ -176,6 +177,7 @@ discard block |
||
176 | 177 | //-- relative fields |
177 | 178 | if ($i == 0 && $fct > 4) { |
178 | 179 | $j = $fct; |
180 | +} |
|
179 | 181 | // Get the current options for Father’s and Mother’s name searches |
180 | 182 | $fatherGivnOption = 'SDX'; |
181 | 183 | $fatherSurnOption = 'SDX'; |
@@ -2760,7 +2760,8 @@ discard block |
||
2760 | 2760 | var pl_name = '<?= Filter::escapeJs($place_name) ?>'; |
2761 | 2761 | <?php if ($place_lati !== 0.0 && $place_long !== 0.0): ?> |
2762 | 2762 | var latlng = new google.maps.LatLng(<?= $place_lati ?>, <?= $place_long ?>); |
2763 | - <?php else: ?> |
|
2763 | + <?php else { |
|
2764 | + : ?> |
|
2764 | 2765 | var latlng = new google.maps.LatLng(<?= $parent_lati ?>, <?= $parent_long ?>); |
2765 | 2766 | <?php endif ?> |
2766 | 2767 | var pl_zoom = <?= $zoomfactor ?>; |
@@ -2862,6 +2863,7 @@ discard block |
||
2862 | 2863 | |
2863 | 2864 | <?php |
2864 | 2865 | $coordsAsStr = []; |
2866 | +} |
|
2865 | 2867 | switch (strtoupper($place_name)) { |
2866 | 2868 | case 'ENGLAND': |
2867 | 2869 | $coordsAsStr[] = '-4.74361,50.66750|-4.78361,50.59361|-4.91584,50.57722|-5.01750,50.54264|-5.02569,50.47271|-5.04729,50.42750|-5.15208,50.34374|-5.26805,50.27389|-5.43194,50.19326|-5.49584,50.21695|-5.54639,50.20527|-5.71000,50.12916|-5.71681,50.06083|-5.66174,50.03631|-5.58278,50.04777|-5.54166,50.07055|-5.53416,50.11569|-5.47055,50.12499|-5.33361,50.09138|-5.27666,50.05972|-5.25674,50.00514|-5.19306,49.95527|-5.16070,50.00319|-5.06555,50.03750|-5.07090,50.08166|-5.04806,50.17111|-4.95278,50.19333|-4.85750,50.23166|-4.76250,50.31138|-4.67861,50.32583|-4.54334,50.32222|-4.48278,50.32583|-4.42972,50.35139|-4.38000,50.36388|-4.16555,50.37028|-4.11139,50.33027|-4.05708,50.29791|-3.94389,50.31346|-3.87764,50.28139|-3.83653,50.22972|-3.78944,50.21222|-3.70666,50.20972|-3.65195,50.23111|-3.55139,50.43833|-3.49416,50.54639|-3.46181,50.58792|-3.41139,50.61610|-3.24416,50.67444|-3.17347,50.68833|-3.09445,50.69222|-2.97806,50.70638|-2.92750,50.73125|-2.88278,50.73111|-2.82305,50.72027|-2.77139,50.70861|-2.66195,50.67334|-2.56305,50.63222|-2.45861,50.57500|-2.44666,50.62639|-2.39097,50.64166|-2.19722,50.62611|-2.12195,50.60722|-2.05445,50.58569|-1.96437,50.59674|-1.95441,50.66536|-2.06681,50.71430|-1.93416,50.71277|-1.81639,50.72306|-1.68445,50.73888|-1.59278,50.72416|-1.33139,50.79138|-1.11695,50.80694|-1.15889,50.84083|-1.09445,50.84584|-0.92842,50.83966|-0.86584,50.79965|-0.90826,50.77396|-0.78187,50.72722|-0.74611,50.76583|-0.67528,50.78111|-0.57722,50.79527|-0.25500,50.82638|-0.19084,50.82583|-0.13805,50.81833|0.05695,50.78083|0.12334,50.75944|0.22778,50.73944|0.28695,50.76500|0.37195,50.81638|0.43084,50.83111|0.56722,50.84777|0.67889,50.87681|0.71639,50.90500|0.79334,50.93610|0.85666,50.92556|0.97125,50.98111|0.99778,51.01903|1.04555,51.04944|1.10028,51.07361|1.26250,51.10166|1.36889,51.13583|1.41111,51.20111|1.42750,51.33111|1.38556,51.38777|1.19195,51.37861|1.05278,51.36722|0.99916,51.34777|0.90806,51.34069|0.70416,51.37749|0.61972,51.38304|0.55945,51.40596|0.64236,51.44042|0.69750,51.47084|0.59195,51.48777|0.53611,51.48806|0.48916,51.48445|0.45215,51.45562|0.38894,51.44822|0.46500,51.50306|0.65195,51.53680|0.76695,51.52138|0.82084,51.53556|0.87528,51.56110|0.95250,51.60923|0.94695,51.72556|0.90257,51.73465|0.86306,51.71166|0.76140,51.69164|0.70111,51.71847|0.86211,51.77361|0.93236,51.80583|0.98278,51.82527|1.03569,51.77416|1.08834,51.77056|1.13222,51.77694|1.18139,51.78972|1.22361,51.80888|1.26611,51.83916|1.28097,51.88096|1.20834,51.95083|1.16347,52.02361|1.27750,51.98555|1.33125,51.92875|1.39028,51.96999|1.58736,52.08388|1.63000,52.19527|1.68576,52.32630|1.73028,52.41138|1.74945,52.45583|1.74590,52.62021|1.70250,52.71583|1.64528,52.77111|1.50361,52.83749|1.43222,52.87472|1.35250,52.90972|1.28222,52.92750|1.18389,52.93889|0.99472,52.95111|0.94222,52.95083|0.88472,52.96638|0.66722,52.97611|0.54778,52.96618|0.49139,52.93430|0.44431,52.86569|0.42903,52.82403|0.36334,52.78027|0.21778,52.80694|0.16125,52.86250|0.05778,52.88916|0.00211,52.87985|0.03222,52.91722|0.20389,53.02805|0.27666,53.06694|0.33916,53.09236|0.35389,53.18722|0.33958,53.23472|0.23555,53.39944|0.14347,53.47527|0.08528,53.48638|0.02694,53.50972|-0.10084,53.57306|-0.20722,53.63083|-0.26445,53.69083|-0.30166,53.71319|-0.39022,53.70794|-0.51972,53.68527|-0.71653,53.69638|-0.65445,53.72527|-0.60584,53.72972|-0.54916,53.70611|-0.42261,53.71755|-0.35728,53.73056|-0.29389,53.73666|-0.23139,53.72166|-0.10584,53.63166|-0.03472,53.62555|0.04416,53.63916|0.08916,53.62666|0.14945,53.58847|0.12639,53.64527|0.06264,53.70389|-0.12750,53.86388|-0.16916,53.91847|-0.21222,54.00833|-0.20569,54.05153|-0.16111,54.08806|-0.11694,54.13222|-0.20053,54.15171|-0.26250,54.17444|-0.39334,54.27277|-0.42166,54.33222|-0.45750,54.37694|-0.51847,54.44749|-0.56472,54.48000|-0.87584,54.57027|-1.06139,54.61722|-1.16528,54.64972|-1.30445,54.77138|-1.34556,54.87138|-1.41278,54.99944|-1.48292,55.08625|-1.51500,55.14972|-1.56584,55.28722|-1.58097,55.48361|-1.63597,55.58194|-1.69000,55.60556|-1.74695,55.62499|-1.81764,55.63306|-1.97681,55.75416|-2.02166,55.80611|-2.08361,55.78054|-2.22000,55.66499|-2.27916,55.64472|-2.27416,55.57527|-2.21528,55.50583|-2.18278,55.45985|-2.21236,55.42777|-2.46305,55.36111|-2.63055,55.25500|-2.69945,55.17722|-2.96278,55.03889|-3.01500,55.05222|-3.05103,54.97986|-3.13292,54.93139|-3.20861,54.94944|-3.28931,54.93792|-3.39166,54.87639|-3.42916,54.81555|-3.56916,54.64249|-3.61306,54.48861|-3.49305,54.40333|-3.43389,54.34806|-3.41056,54.28014|-3.38055,54.24444|-3.21472,54.09555|-3.15222,54.08194|-2.93097,54.15333|-2.81361,54.22277|-2.81750,54.14277|-2.83361,54.08500|-2.93250,53.95055|-3.05264,53.90764|-3.03708,53.74944|-2.99278,53.73277|-2.89979,53.72499|-2.97729,53.69382|-3.07306,53.59805|-3.10563,53.55993|-3.00678,53.41738|-2.95389,53.36027|-2.85736,53.32083|-2.70493,53.35062|-2.77639,53.29250|-2.89972,53.28916|-2.94250,53.31056|-3.02889,53.38191|-3.07248,53.40936|-3.16695,53.35708|-3.12611,53.32500|-3.08860,53.26001|-3.02000,53.24722|-2.95528,53.21555|-2.91069,53.17014|-2.89389,53.10416|-2.85695,53.03249|-2.77792,52.98514|-2.73109,52.96873|-2.71945,52.91902|-2.79278,52.90207|-2.85069,52.93875|-2.99389,52.95361|-3.08639,52.91611|-3.13014,52.88486|-3.13708,52.79312|-3.06806,52.77027|-3.01111,52.71166|-3.06666,52.63527|-3.11750,52.58666|-3.07089,52.55702|-3.00792,52.56902|-2.98028,52.53083|-3.02736,52.49792|-3.11916,52.49194|-3.19514,52.46722|-3.19611,52.41027|-3.02195,52.34027|-2.95486,52.33117|-2.99750,52.28139|-3.05125,52.23347|-3.07555,52.14804|-3.12222,52.11805|-3.11250,52.06945|-3.08500,52.01930|-3.04528,51.97639|-2.98889,51.92555|-2.91757,51.91569|-2.86639,51.92889|-2.77861,51.88583|-2.65944,51.81806|-2.68334,51.76957|-2.68666,51.71889|-2.66500,51.61500|-2.62916,51.64416|-2.57889,51.67777|-2.46056,51.74666|-2.40389,51.74041|-2.47166,51.72445|-2.55305,51.65722|-2.65334,51.56389|-2.77055,51.48916|-2.85278,51.44472|-2.96000,51.37499|-3.00695,51.30722|-3.01278,51.25632|-3.02834,51.20611|-3.30139,51.18111|-3.39361,51.18138|-3.43729,51.20638|-3.50722,51.22333|-3.57014,51.23027|-3.63222,51.21805|-3.70028,51.23000|-3.79250,51.23916|-3.88389,51.22416|-3.98472,51.21695|-4.11666,51.21222|-4.22805,51.18777|-4.22028,51.11054|-4.23702,51.04659|-4.30361,51.00416|-4.37639,50.99110|-4.42736,51.00958|-4.47445,51.01416|-4.52132,51.01424|-4.54334,50.92694|-4.56139,50.77625|-4.65139,50.71527|-4.74361,50.66750'; |
@@ -1120,24 +1120,24 @@ |
||
1120 | 1120 | if ($latlongval[$i] == $latlongval[$k]) { |
1121 | 1121 | $dups++; |
1122 | 1122 | switch ($dups) { |
1123 | - case 1: |
|
1124 | - $marker_number = $curgen . 'L'; |
|
1125 | - break; |
|
1126 | - case 2: |
|
1127 | - $marker_number = $curgen . 'R'; |
|
1128 | - break; |
|
1129 | - case 3: |
|
1130 | - $marker_number = $curgen . 'Ls'; |
|
1131 | - break; |
|
1132 | - case 4: |
|
1133 | - $marker_number = $curgen . 'Rs'; |
|
1134 | - break; |
|
1135 | - case 5: //adjust position where markers have same coodinates |
|
1136 | - default: |
|
1137 | - $marker_number = $curgen; |
|
1138 | - $lon[$i] += 0.0025; |
|
1139 | - $lat[$i] += 0.0025; |
|
1140 | - break; |
|
1123 | + case 1: |
|
1124 | + $marker_number = $curgen . 'L'; |
|
1125 | + break; |
|
1126 | + case 2: |
|
1127 | + $marker_number = $curgen . 'R'; |
|
1128 | + break; |
|
1129 | + case 3: |
|
1130 | + $marker_number = $curgen . 'Ls'; |
|
1131 | + break; |
|
1132 | + case 4: |
|
1133 | + $marker_number = $curgen . 'Rs'; |
|
1134 | + break; |
|
1135 | + case 5: //adjust position where markers have same coodinates |
|
1136 | + default: |
|
1137 | + $marker_number = $curgen; |
|
1138 | + $lon[$i] += 0.0025; |
|
1139 | + $lat[$i] += 0.0025; |
|
1140 | + break; |
|
1141 | 1141 | } |
1142 | 1142 | } |
1143 | 1143 | } |
@@ -148,7 +148,7 @@ |
||
148 | 148 | public static function createEditLinks($gedrec, GedcomRecord $record) { |
149 | 149 | return preg_replace( |
150 | 150 | "/@([^#@\n]+)@/m", |
151 | - '<a href="edit_interface.php?action=editraw&ged=' . $record->getTree()->getNameHtml() . '&xref=' . $record->getXref() .'">@\\1@</a>', |
|
151 | + '<a href="edit_interface.php?action=editraw&ged=' . $record->getTree()->getNameHtml() . '&xref=' . $record->getXref() . '">@\\1@</a>', |
|
152 | 152 | $gedrec |
153 | 153 | ); |
154 | 154 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | |
65 | 65 | return [ |
66 | 66 | 'data-language' => json_encode($language), |
67 | - 'data-length-menu' => json_encode([array_keys($length_menu), array_values($length_menu)]) |
|
67 | + 'data-length-menu' => json_encode([array_keys($length_menu), array_values($length_menu)]) |
|
68 | 68 | ]; |
69 | 69 | } |
70 | 70 |
@@ -89,7 +89,7 @@ |
||
89 | 89 | if (Auth::isAdmin()) { |
90 | 90 | $user = User::findByGenealogyRecord($controller->record); |
91 | 91 | if ($user) { |
92 | - $user_link = ' — <a href="admin_users.php?filter=' . Filter::escapeHtml($user->getUserName()) . '">' . Filter::escapeHtml($user->getUserName()) . '</a>'; |
|
92 | + $user_link = ' — <a href="admin_users.php?filter=' . Filter::escapeHtml($user->getUserName()) . '">' . Filter::escapeHtml($user->getUserName()) . '</a>'; |
|
93 | 93 | }; |
94 | 94 | } |
95 | 95 |
@@ -176,7 +176,7 @@ |
||
176 | 176 | /** |
177 | 177 | * Format an individual. |
178 | 178 | * |
179 | - * @param $person |
|
179 | + * @param Individual|null $person |
|
180 | 180 | * @param bool $showUnknown |
181 | 181 | * |
182 | 182 | * @return string |
@@ -140,7 +140,8 @@ discard block |
||
140 | 140 | <div class="font9"> |
141 | 141 | <?= $spouse->getLifeSpan() ?> |
142 | 142 | </div> |
143 | - <?php else: ?> |
|
143 | + <?php else { |
|
144 | + : ?> |
|
144 | 145 | <?= $spouse->getFullName() ?> |
145 | 146 | <?php endif ?> |
146 | 147 | </td> |
@@ -150,6 +151,7 @@ discard block |
||
150 | 151 | |
151 | 152 | foreach ($family->getChildren() as $child) { |
152 | 153 | $menu = new Menu(Functions::getCloseRelationshipName($controller->record, $child)); |
154 | +} |
|
153 | 155 | $menu->addSubmenu(new Menu($this->getFamily($child))); |
154 | 156 | ?> |
155 | 157 | <tr> |
@@ -166,7 +168,8 @@ discard block |
||
166 | 168 | <div class="font9"> |
167 | 169 | <?= $child->getLifeSpan() ?> |
168 | 170 | </div> |
169 | - <?php else: ?> |
|
171 | + <?php else { |
|
172 | + : ?> |
|
170 | 173 | <?= $child->getFullName() ?> |
171 | 174 | <?php endif ?> |
172 | 175 | </td> |
@@ -186,6 +189,7 @@ discard block |
||
186 | 189 | private function getHTML($person, $showUnknown = false) { |
187 | 190 | if ($person instanceof Individual) { |
188 | 191 | return sprintf(self::LNK, $person->getHtmlUrl(), $person->getFullName()); |
192 | +} |
|
189 | 193 | } elseif ($showUnknown) { |
190 | 194 | return sprintf(self::MSG, I18N::translate('unknown')); |
191 | 195 | } else { |