@@ -165,7 +165,7 @@ |
||
165 | 165 | public function getFileAction(Request $request): Response { |
166 | 166 | $file = $request->get('file', ''); |
167 | 167 | |
168 | - if (!preg_match('/^(\d+)-([imnrs])-(\d+)$/', $file, $match)) { |
|
168 | + if (!preg_match('/^(\d+)-([imnrs])-(\d+)$/', $file, $match)) { |
|
169 | 169 | throw new NotFoundHttpException('Bad sitemap file'); |
170 | 170 | } |
171 | 171 |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | |
232 | 232 | // Create a source, to indicate the source of the data. |
233 | 233 | $filetext .= "0 @WEBTREES@ SOUR\n1 TITL " . WT_BASE_URL . "\n"; |
234 | - $author = User::find($tree->getPreference('CONTACT_EMAIL')); |
|
234 | + $author = User::find($tree->getPreference('CONTACT_EMAIL')); |
|
235 | 235 | if ($author !== null) { |
236 | 236 | $filetext .= '1 AUTH ' . $author->getRealName() . "\n"; |
237 | 237 | } |
@@ -608,7 +608,7 @@ discard block |
||
608 | 608 | |
609 | 609 | $xref = $request->get('xref'); |
610 | 610 | |
611 | - $media = Media::getInstance($xref, $tree); |
|
611 | + $media = Media::getInstance($xref, $tree); |
|
612 | 612 | |
613 | 613 | if ($media === null) { |
614 | 614 | throw new NotFoundHttpException; |
@@ -649,7 +649,7 @@ discard block |
||
649 | 649 | /** @var Tree $tree */ |
650 | 650 | $tree = $request->attributes->get('tree'); |
651 | 651 | |
652 | - $xref = $request->get('xref'); |
|
652 | + $xref = $request->get('xref'); |
|
653 | 653 | |
654 | 654 | $media = Media::getInstance($xref, $tree); |
655 | 655 | |
@@ -673,7 +673,7 @@ discard block |
||
673 | 673 | |
674 | 674 | $xref = $request->get('xref'); |
675 | 675 | |
676 | - $note = Note::getInstance($xref, $tree); |
|
676 | + $note = Note::getInstance($xref, $tree); |
|
677 | 677 | |
678 | 678 | if ($note === null) { |
679 | 679 | throw new NotFoundHttpException; |
@@ -714,7 +714,7 @@ discard block |
||
714 | 714 | /** @var Tree $tree */ |
715 | 715 | $tree = $request->attributes->get('tree'); |
716 | 716 | |
717 | - $xref = $request->get('xref'); |
|
717 | + $xref = $request->get('xref'); |
|
718 | 718 | |
719 | 719 | $note = Note::getInstance($xref, $tree); |
720 | 720 | |
@@ -738,7 +738,7 @@ discard block |
||
738 | 738 | |
739 | 739 | $xref = $request->get('xref'); |
740 | 740 | |
741 | - $repository = Repository::getInstance($xref, $tree); |
|
741 | + $repository = Repository::getInstance($xref, $tree); |
|
742 | 742 | |
743 | 743 | if ($repository === null) { |
744 | 744 | throw new NotFoundHttpException; |
@@ -779,7 +779,7 @@ discard block |
||
779 | 779 | /** @var Tree $tree */ |
780 | 780 | $tree = $request->attributes->get('tree'); |
781 | 781 | |
782 | - $xref = $request->get('xref'); |
|
782 | + $xref = $request->get('xref'); |
|
783 | 783 | |
784 | 784 | $repository = Repository::getInstance($xref, $tree); |
785 | 785 | |
@@ -803,7 +803,7 @@ discard block |
||
803 | 803 | |
804 | 804 | $xref = $request->get('xref'); |
805 | 805 | |
806 | - $source = Source::getInstance($xref, $tree); |
|
806 | + $source = Source::getInstance($xref, $tree); |
|
807 | 807 | |
808 | 808 | if ($source === null) { |
809 | 809 | throw new NotFoundHttpException; |
@@ -889,7 +889,7 @@ discard block |
||
889 | 889 | $records = array_filter($records); |
890 | 890 | |
891 | 891 | // Group and sort. |
892 | - uasort($records, function(GedcomRecord $x, GedcomRecord $y) { |
|
892 | + uasort($records, function (GedcomRecord $x, GedcomRecord $y) { |
|
893 | 893 | return $x::RECORD_TYPE <=> $y::RECORD_TYPE ?: GedcomRecord::compare($x, $y); |
894 | 894 | }); |
895 | 895 |