Skip to content

Commit 39c33d8

Browse files
cheesegritsgithub-actions[bot]
authored andcommitted
chore: fix code style
1 parent 0033565 commit 39c33d8

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/Fields/WidgetMap.php

+11-12
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ class WidgetMap extends Field
3434
protected Closure|bool $fitToBounds = false;
3535

3636
protected Closure|array $markers = [];
37-
37+
3838
protected Closure|Action|null $markerAction = null;
39-
4039

4140
/**
4241
* Main field config variables
@@ -161,14 +160,14 @@ public function getMarkers(): array
161160
{
162161
return $this->evaluate($this->markers);
163162
}
164-
163+
165164
public function markerAction(Closure|Action $markerAction): static
166165
{
167166
$this->markerAction = $markerAction;
168-
167+
169168
return $this;
170169
}
171-
170+
172171
public function getMarkerAction(): ?Action
173172
{
174173
return $this->evaluate($this->markerAction);
@@ -270,13 +269,13 @@ public function getMapConfig(): string
270269

271270
$config = json_encode(
272271
array_merge($this->mapConfig, [
273-
'clustering' => self::getClustering(),
274-
'layers' => $this->getLayers(),
275-
'zoom' => $this->getZoom(),
276-
'controls' => $this->getMapControls(false),
277-
'markerAction' => $this->getMarkerAction() ? 'markerAction' : null,
278-
'fit' => $this->getFitToBounds(),
279-
'gmaps' => MapsHelper::mapsUrl(),
272+
'clustering' => self::getClustering(),
273+
'layers' => $this->getLayers(),
274+
'zoom' => $this->getZoom(),
275+
'controls' => $this->getMapControls(false),
276+
'markerAction' => $this->getMarkerAction() ? 'markerAction' : null,
277+
'fit' => $this->getFitToBounds(),
278+
'gmaps' => MapsHelper::mapsUrl(),
280279
])
281280
);
282281

0 commit comments

Comments
 (0)