@@ -50,14 +50,14 @@ discard block |
||
| 50 | 50 | $osm_module = Module::getModuleByName(self::MAP_MODULE); |
| 51 | 51 | $method = 'assets'; |
| 52 | 52 | $showmap = $osm_module && |
| 53 | - (bool)$osm_module->getPreference('place_hierarchy') && |
|
| 53 | + (bool) $osm_module->getPreference('place_hierarchy') && |
|
| 54 | 54 | method_exists($osm_module, $method) && |
| 55 | 55 | strpos($action, 'hierarchy') === 0; |
| 56 | 56 | $data = null; |
| 57 | 57 | $note = false; |
| 58 | 58 | |
| 59 | 59 | if ($showmap) { |
| 60 | - $note = true; |
|
| 60 | + $note = true; |
|
| 61 | 61 | $content .= view('modules/openstreetmap/map', |
| 62 | 62 | [ |
| 63 | 63 | 'assets' => $osm_module->$method(), |
@@ -70,14 +70,14 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | switch ($action) { |
| 72 | 72 | case 'list': |
| 73 | - $nextaction = ['hierarchy' => I18N::translate('Show place hierarchy')]; |
|
| 74 | - $content .= view('place-list', $this->getList($tree)); |
|
| 73 | + $nextaction = ['hierarchy' => I18N::translate('Show place hierarchy')]; |
|
| 74 | + $content .= view('place-list', $this->getList($tree)); |
|
| 75 | 75 | break; |
| 76 | 76 | case 'hierarchy': |
| 77 | 77 | case 'hierarchy-e': |
| 78 | 78 | $nextaction = ['list' => I18N::translate('Show all places in a list')]; |
| 79 | 79 | $data = $this->getHierarchy($tree, $place, $parent); |
| 80 | - $content .= (null === $data || $showmap) ? '' : view('place-hierarchy', $data); |
|
| 80 | + $content .= (null === $data || $showmap) ? '' : view('place-hierarchy', $data); |
|
| 81 | 81 | if (null === $data || $action === 'hierarchy-e') { |
| 82 | 82 | $content .= view('place-events', $this->getEvents($tree, $place)); |
| 83 | 83 | } |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | return |
| 119 | 119 | [ |
| 120 | - 'columns' => array_chunk($list_places, (int)ceil($numfound / $divisor)), |
|
| 120 | + 'columns' => array_chunk($list_places, (int) ceil($numfound / $divisor)), |
|
| 121 | 121 | ]; |
| 122 | 122 | } |
| 123 | 123 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | [ |
| 140 | 140 | 'tree' => $tree, |
| 141 | 141 | 'col_class' => "w-" . ($divisor === 2 ? "25" : "50"), |
| 142 | - 'columns' => array_chunk($child_places, (int)ceil($numfound / $divisor)), |
|
| 142 | + 'columns' => array_chunk($child_places, (int) ceil($numfound / $divisor)), |
|
| 143 | 143 | 'place' => $place, |
| 144 | 144 | 'parent' => $parent, |
| 145 | 145 | ]; |