@@ -45,7 +45,7 @@ |
||
45 | 45 | { |
46 | 46 | use ModuleChartTrait; |
47 | 47 | |
48 | - protected const ROUTE_URL = '/tree/{tree}/hourglass-{generations}-{spouses}/{xref}'; |
|
48 | + protected const ROUTE_URL = '/tree/{tree}/hourglass-{generations}-{spouses}/{xref}'; |
|
49 | 49 | |
50 | 50 | // Defaults |
51 | 51 | private const DEFAULT_GENERATIONS = '3'; |
@@ -45,7 +45,7 @@ |
||
45 | 45 | { |
46 | 46 | use ModuleChartTrait; |
47 | 47 | |
48 | - protected const ROUTE_URL = '/tree/{tree}/ancestors-{style}-{generations}/{xref}'; |
|
48 | + protected const ROUTE_URL = '/tree/{tree}/ancestors-{style}-{generations}/{xref}'; |
|
49 | 49 | |
50 | 50 | // Chart styles |
51 | 51 | public const CHART_STYLE_TREE = 'tree'; |
@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | use ModuleChartTrait; |
48 | 48 | |
49 | - protected const ROUTE_URL = '/tree/{tree}/lifespans'; |
|
49 | + protected const ROUTE_URL = '/tree/{tree}/lifespans'; |
|
50 | 50 | |
51 | 51 | // Defaults |
52 | 52 | protected const DEFAULT_PARAMETERS = []; |
@@ -294,8 +294,8 @@ |
||
294 | 294 | if ($parent_id === 0) { |
295 | 295 | // We're at the global level so create a minimal |
296 | 296 | // place for the page title and breadcrumbs |
297 | - $title = I18N::translate('World'); |
|
298 | - $hierarchy = []; |
|
297 | + $title = I18N::translate('World'); |
|
298 | + $hierarchy = []; |
|
299 | 299 | } else { |
300 | 300 | $hierarchy = $this->getHierarchy($parent_id); |
301 | 301 | $tmp = new Location($hierarchy[0]->fqpn); |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | * |
224 | 224 | * @return array |
225 | 225 | */ |
226 | - private function searchGazetteer($query, $limit=10) |
|
226 | + private function searchGazetteer($query, $limit = 10) |
|
227 | 227 | { |
228 | 228 | $key = Site::getPreference('opencage'); |
229 | 229 | $use_opencage = $key !== ''; |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | $client = new Client(); |
256 | 256 | try { |
257 | 257 | $json = $client->get($url, self::GUZZLE_OPTIONS + ['query' => $query])->getBody()->__toString(); |
258 | - $results = json_decode($json, false, 512, JSON_THROW_ON_ERROR); |
|
258 | + $results = json_decode($json, false, 512, JSON_THROW_ON_ERROR); |
|
259 | 259 | if ($use_opencage) { |
260 | 260 | $results = $results->results; |
261 | 261 | } |