Fix Code style.

This commit is contained in:
David Molineus
2018-12-07 11:22:16 +01:00
parent 57ba63556a
commit 878492c0b1
2 changed files with 2 additions and 1 deletions

View File

@@ -122,6 +122,7 @@ class LeafletDcaListener
$data['marker'] = json_encode($latLng); $data['marker'] = json_encode($latLng);
} catch (\Exception $e) { } catch (\Exception $e) {
// LatLng throws an exception of value could not be created. Just let the value empty when. // LatLng throws an exception of value could not be created. Just let the value empty when.
$data['marker'] = null;
} }
return $this->templateEngine->render('toolkit:be:be_leaflet_geocode.html5', $data); return $this->templateEngine->render('toolkit:be:be_leaflet_geocode.html5', $data);

View File

@@ -44,7 +44,7 @@ class MarkerModel extends AbstractActiveModel
public static function findByFilter($pid, ?Filter $filter = null) public static function findByFilter($pid, ?Filter $filter = null)
{ {
if (!$filter) { if (!$filter) {
$table = static::getTable(); $table = static::getTable();
return static::findBy( return static::findBy(
[ [