@@ -28,7 +28,7 @@ |
||
28 | 28 | { |
29 | 29 | public const RECORD_TYPE = 'SOUR'; |
30 | 30 | |
31 | - protected const ROUTE_NAME = 'source'; |
|
31 | + protected const ROUTE_NAME = 'source'; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * A closure which will create a record from a database row. |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | { |
95 | 95 | $url = $request->get('url', ''); |
96 | 96 | $xref = $request->get('xref', ''); |
97 | - $change_id = (int)$request->get('change_id'); |
|
97 | + $change_id = (int) $request->get('change_id'); |
|
98 | 98 | |
99 | 99 | $changes = DB::table('change') |
100 | 100 | ->where('gedcom_id', '=', $tree->id()) |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | { |
192 | 192 | $url = $request->get('url', ''); |
193 | 193 | $xref = $request->get('xref', ''); |
194 | - $change_id = (int)$request->get('change_id'); |
|
194 | + $change_id = (int) $request->get('change_id'); |
|
195 | 195 | |
196 | 196 | // Reject a change, and subsequent changes to the same record |
197 | 197 | DB::table('change') |
@@ -149,7 +149,7 @@ |
||
149 | 149 | 'ged' => $tree->name(), |
150 | 150 | 'show_all' => 'yes', |
151 | 151 | ]; |
152 | - $show = $request->get('show', 'surn'); |
|
152 | + $show = $request->get('show', 'surn'); |
|
153 | 153 | } |
154 | 154 | } elseif ($surname) { |
155 | 155 | $alpha = $this->localization_service->initialLetter($surname); // so we can highlight the initial letter |
@@ -478,7 +478,7 @@ |
||
478 | 478 | return true; |
479 | 479 | } |
480 | 480 | |
481 | - $cache_key = 'canShow' . $this->xref . ':' . $this->tree->id() . ':' . $access_level; |
|
481 | + $cache_key = 'canShow' . $this->xref . ':' . $this->tree->id() . ':' . $access_level; |
|
482 | 482 | |
483 | 483 | return app('cache.array')->rememberForever($cache_key, function () use ($access_level) { |
484 | 484 | return $this->canShowRecord($access_level); |
@@ -291,7 +291,7 @@ |
||
291 | 291 | 'provider' => 'openstreetmap', |
292 | 292 | 'style' => 'mapnik', |
293 | 293 | ]; |
294 | - self::$map_providers = [ |
|
294 | + self::$map_providers = [ |
|
295 | 295 | 'openstreetmap' => [ |
296 | 296 | 'name' => 'OpenStreetMap', |
297 | 297 | 'styles' => ['mapnik' => 'Mapnik'], |
@@ -657,7 +657,7 @@ |
||
657 | 657 | private function filterActiveBlocks(Collection $blocks, Collection $active_blocks): Collection |
658 | 658 | { |
659 | 659 | return $blocks->map(function (string $block_name) use ($active_blocks): ?ModuleBlockInterface { |
660 | - return $active_blocks->filter(function (ModuleInterface $block) use ($block_name): bool { |
|
660 | + return $active_blocks->filter(function (ModuleInterface $block) use ($block_name) : bool { |
|
661 | 661 | return $block->name() === $block_name; |
662 | 662 | })->first(); |
663 | 663 | }) |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | 'generations' => 3, |
96 | 96 | 'layout' => PedigreeChartModule::PORTRAIT, |
97 | 97 | ]); |
98 | - $content = view('modules/charts/chart', [ |
|
98 | + $content = view('modules/charts/chart', [ |
|
99 | 99 | 'block_id' => $block_id, |
100 | 100 | 'chart_url' => $chart_url, |
101 | 101 | ]); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | 'generations' => 2, |
111 | 111 | 'chart_style' => DescendancyChartModule::CHART_STYLE_LIST, |
112 | 112 | ]); |
113 | - $content = view('modules/charts/chart', [ |
|
113 | + $content = view('modules/charts/chart', [ |
|
114 | 114 | 'block_id' => $block_id, |
115 | 115 | 'chart_url' => $chart_url, |
116 | 116 | ]); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'ajax' => true, |
125 | 125 | 'generations' => 2, |
126 | 126 | ]); |
127 | - $content = view('modules/charts/chart', [ |
|
127 | + $content = view('modules/charts/chart', [ |
|
128 | 128 | 'block_id' => $block_id, |
129 | 129 | 'chart_url' => $chart_url, |
130 | 130 | ]); |
@@ -103,11 +103,11 @@ |
||
103 | 103 | $record = GedcomRecord::getInstance('HEAD', $tree); |
104 | 104 | $fact = $record->getFirstFact('COPR'); |
105 | 105 | if ($fact instanceof Fact) { |
106 | - $COPR = "\n1 COPR " .$fact->value(); |
|
106 | + $COPR = "\n1 COPR " . $fact->value(); |
|
107 | 107 | } |
108 | - $fact = $record->getFirstFact('LANG'); |
|
108 | + $fact = $record->getFirstFact('LANG'); |
|
109 | 109 | if ($fact instanceof Fact) { |
110 | - $LANG = "\n1 LANG " .$fact->value(); |
|
110 | + $LANG = "\n1 LANG " . $fact->value(); |
|
111 | 111 | } |
112 | 112 | // Link to actual SUBM/SUBN records, if they exist |
113 | 113 | $subn = DB::table('other') |
@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | // Did we emigrate or naturalise? |
55 | - foreach ($individual->facts(['IMMI' ,'EMIG', 'NATU'], true) as $fact) { |
|
55 | + foreach ($individual->facts(['IMMI', 'EMIG', 'NATU'], true) as $fact) { |
|
56 | 56 | if (Date::compare($fact->date(), $this->date()) <= 0) { |
57 | 57 | $place = $fact->place()->gedcomName(); |
58 | 58 | } |