@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | // Ambiguous dates - don't override calendar escape |
157 | 157 | if ($cal === '') { |
158 | 158 | if (preg_match('/^(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)$/', $m)) { |
159 | - $cal = GregorianDate::ESCAPE; |
|
159 | + $cal = GregorianDate::ESCAPE; |
|
160 | 160 | } elseif (preg_match('/^[345]\d\d\d$/', $y)) { |
161 | 161 | // Year 3000-5999 |
162 | 162 | $cal = JewishDate::ESCAPE; |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | public function addYears(int $years, string $qualifier = ''): Date |
452 | 452 | { |
453 | 453 | $tmp = clone $this; |
454 | - $tmp->date1->year += $years; |
|
454 | + $tmp->date1->year += $years; |
|
455 | 455 | $tmp->date1->month = 0; |
456 | 456 | $tmp->date1->day = 0; |
457 | 457 | $tmp->date1->setJdFromYmd(); |
@@ -11,7 +11,8 @@ |
||
11 | 11 | /** |
12 | 12 | * An example module to modify PHP and database configuration. |
13 | 13 | */ |
14 | -return new class extends AbstractModule implements ModuleCustomInterface { |
|
14 | +return new class extends AbstractModule implements ModuleCustomInterface |
|
15 | +{ |
|
15 | 16 | use ModuleCustomTrait; |
16 | 17 | |
17 | 18 | /** @var ServerCheckService */ |
@@ -13,7 +13,8 @@ |
||
13 | 13 | /** |
14 | 14 | * Example module |
15 | 15 | */ |
16 | -return new class extends AbstractModule implements ModuleCustomInterface { |
|
16 | +return new class extends AbstractModule implements ModuleCustomInterface |
|
17 | +{ |
|
17 | 18 | use ModuleCustomTrait; |
18 | 19 | |
19 | 20 | /** |
@@ -20,7 +20,8 @@ |
||
20 | 20 | * Example theme. Here we are extending an existing theme. |
21 | 21 | * Instead, you could extend AbstractModule and implement ModuleThemeInterface directly. |
22 | 22 | */ |
23 | -return new class extends MinimalTheme implements ModuleCustomInterface { |
|
23 | +return new class extends MinimalTheme implements ModuleCustomInterface |
|
24 | +{ |
|
24 | 25 | use ModuleCustomTrait; |
25 | 26 | |
26 | 27 | /** |
@@ -575,7 +575,7 @@ |
||
575 | 575 | $html .= view('components/select', ['id' => $id, 'name' => $name, 'selected' => $value, 'values' => GedcomCodeName::getValues()]); |
576 | 576 | } elseif ($fact === 'TYPE' && $level === '3') { |
577 | 577 | //-- Build the selector for the Media 'TYPE' Fact |
578 | - $html .= '<select name="text[]"><option selected value="" ></option>'; |
|
578 | + $html .= '<select name="text[]"><option selected value="" ></option>'; |
|
579 | 579 | $selectedValue = strtolower($value); |
580 | 580 | if (!array_key_exists($selectedValue, GedcomTag::getFileFormTypes())) { |
581 | 581 | $html .= '<option selected value="' . e($value) . '" >' . e($value) . '</option>'; |
@@ -344,7 +344,7 @@ |
||
344 | 344 | $html .= '<div id="' . $person->xref() . '" class="fan_chart_menu">'; |
345 | 345 | $html .= '<div class="person_box"><div class="details1">'; |
346 | 346 | $html .= '<div class="charts">'; |
347 | - $html .= '<a href="' . e($person->url()) . '" class="dropdown-item">' . $name. '</a>'; |
|
347 | + $html .= '<a href="' . e($person->url()) . '" class="dropdown-item">' . $name . '</a>'; |
|
348 | 348 | foreach ($theme->individualBoxMenu($person) as $menu) { |
349 | 349 | $html .= '<a href="' . e($menu->getLink()) . '" class="dropdown-item p-1 ' . e($menu->getClass()) . '">' . $menu->getLabel() . '</a>'; |
350 | 350 | } |
@@ -121,7 +121,7 @@ |
||
121 | 121 | $length = (int) $request->getAttribute('length'); |
122 | 122 | |
123 | 123 | // Files within this folder |
124 | - $media_folder = $request->getAttribute('media_folder', ''); |
|
124 | + $media_folder = $request->getAttribute('media_folder', ''); |
|
125 | 125 | |
126 | 126 | // subfolders within $media_path |
127 | 127 | $subfolders = $request->getAttribute('subfolders', ''); // include|exclude |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | { |
96 | 96 | $url = $request->getAttribute('url', ''); |
97 | 97 | $xref = $request->getAttribute('xref', ''); |
98 | - $change_id = (int)$request->getAttribute('change_id'); |
|
98 | + $change_id = (int) $request->getAttribute('change_id'); |
|
99 | 99 | |
100 | 100 | $changes = DB::table('change') |
101 | 101 | ->where('gedcom_id', '=', $tree->id()) |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | { |
193 | 193 | $url = $request->getAttribute('url', ''); |
194 | 194 | $xref = $request->getAttribute('xref', ''); |
195 | - $change_id = (int)$request->getAttribute('change_id'); |
|
195 | + $change_id = (int) $request->getAttribute('change_id'); |
|
196 | 196 | |
197 | 197 | // Reject a change, and subsequent changes to the same record |
198 | 198 | DB::table('change') |