Skip to content

Commit 4190620

Browse files
committed
fix some linter and coding style
1 parent 4302683 commit 4190620

File tree

7 files changed

+12
-11
lines changed

7 files changed

+12
-11
lines changed

src/Autocomplete/assets/dist/controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1515
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1616
PERFORMANCE OF THIS SOFTWARE.
1717
***************************************************************************** */
18-
/* global Reflect, Promise, SuppressedError, Symbol */
18+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
1919

2020

2121
function __classPrivateFieldGet(receiver, state, kind, f) {

src/Map/assets/src/abstract_map_controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ export default abstract class<
189189
element: Polygon;
190190
}
191191
| {
192-
definition: PolylineDefinition<PolylineOptions, InfoWindowOptions>['infoWindow'];
193-
element: Polyline;
192+
definition: PolylineDefinition<PolylineOptions, InfoWindowOptions>['infoWindow'];
193+
element: Polyline;
194194
}): InfoWindow;
195195

196196
protected abstract doFitBoundsToMarkers(): void;

src/Map/src/Bridge/Leaflet/tests/LeafletRendererTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,3 @@ public function provideTestRenderMap(): iterable
4949
];
5050
}
5151
}
52-
53-

src/Map/src/Map.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public function __construct(
4040
* @var array<Polyline>
4141
*/
4242
private array $polylines = [],
43-
) {}
43+
) {
44+
}
4445

4546
public function getRendererName(): ?string
4647
{
@@ -98,7 +99,7 @@ public function addPolygon(Polygon $polygon): self
9899

99100
return $this;
100101
}
101-
102+
102103
public function addPolyline(Polyline $polyline): self
103104
{
104105
$this->polylines[] = $polyline;
@@ -123,9 +124,9 @@ public function toArray(): array
123124
'zoom' => $this->zoom,
124125
'fitBoundsToMarkers' => $this->fitBoundsToMarkers,
125126
'options' => (object) ($this->options?->toArray() ?? []),
126-
'markers' => array_map(static fn(Marker $marker) => $marker->toArray(), $this->markers),
127-
'polygons' => array_map(static fn(Polygon $polygon) => $polygon->toArray(), $this->polygons),
128-
'polylines' => array_map(static fn(Polyline $polyline) => $polyline->toArray(), $this->polylines),
127+
'markers' => array_map(static fn (Marker $marker) => $marker->toArray(), $this->markers),
128+
'polygons' => array_map(static fn (Polygon $polygon) => $polygon->toArray(), $this->polygons),
129+
'polylines' => array_map(static fn (Polyline $polyline) => $polyline->toArray(), $this->polylines),
129130
];
130131
}
131132

src/Map/src/Polygon.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function __construct(
3333

3434
/**
3535
* Convert the polygon to an array representation.
36+
*
3637
* @return array{
3738
* points: array<array{lat: float, lng: float}>,
3839
* title: string|null,

src/Map/src/Polyline.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function __construct(
3333

3434
/**
3535
* Convert the polyline to an array representation.
36+
*
3637
* @return array{
3738
* points: array<array{lat: float, lng: float}>,
3839
* title: string|null,

src/Map/src/Twig/UXMapComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class UXMapComponent
3636
* @var Polygon[]
3737
*/
3838
public array $polygons;
39-
39+
4040
/**
4141
* @var Polyline[]
4242
*/

0 commit comments

Comments
 (0)